In SX Microcontrollers, SX/B Compiler and SX-Key Tool, edgellmh wrote: CHECK_NEED_FOR_DOME_CLOSURE state1, state2, state3 'incrementing through parameters For Index = 0 TO 2 tmp1 = parameterinterator(Index) IF tmp1 = ON 'close dome ENDIF ENDFOR 'I appreciate that if the three function parameters had been assigned to variables outside 'the function call that I would not need any parameters and could reach outside the 'function to get their values. Of course then they would need to be in an array or some 'other device to allow iteration. ' 'I suppose this answers my question of how to proceed ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=268167#m268207 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)