In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Steel wrote: The numbers following "SUB" and "FUNC" are the Minimum, maximum number of parameters to pass to the sub/function... WAIT_MS SUB 1,2 1 = there is at least 1 parameter that you are passing to the sub routine 2 = there is at Most 2 paramters that you are passing to the sub routine With this declaration, when you are writing your code you can pass either 1 or 2 parameters to the sub and the sub. Looking at a made-up example: GET_TEM FUNC 3,5 3 = You have made it so that this sub requires at least 3 variables to be passed 5 = You have made it so that this sub requires at most 5 variables to be passed If you only pass it 1 variable in your code you will encounter problems, If you pass it 6 variables you will also encounter problems. You can pass it 3,4,or 5 variables. The number sets up the 'Fence' for the 'shepard's pen', and your variables (parameters) are the sheep. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=164513#m164528 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)