In SX Microcontrollers, SX/B Compiler and SX-Key Tool, peterverkaik wrote: Hi, sub declaration take the form SUB MIN,MAX where MIN and MAX define the number of parameter. It would be nice if we could use a more elaborate format. Something like SUB mysub [word,word][/word|byte|bit] SUB mysub [word,byte,byte][/word|byte|bit] SUB mysub [word,byte][/word|byte|bit] SUB mysub [word][/word|byte|bit] SUB mysub [byte,byte,byte,byte][/word|byte|bit] SUB mysub [byte,byte,byte][/word|byte|bit] SUB mysub [byte,byte][/word|byte|bit] SUB mysub [byte][/word|byte|bit] SUB mysub [/word|byte|bit] The first options between [] define the parameter types (for up to 4 bytes) the second [] defines the return type (the / marks it as returntype.) The bit returntype returns a byte with value 0 or 1. Just a thought for a future enhancement. It can coexist with the current format. regards peter ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=144889 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)