In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: No, it's about whether a chunk of code is designed to return a value -- that's a function; a subroutine may accept a parameter but [usually] doesn't return anything (if it does it is limited to one byte). Here are two very simple examples: [code] SUB TX_BYTE SEROUT TX, BaudMode, __PARAM1 ENDSUB FUNC RX_BYTE SERIN RX, BaudMode, tmpB1 RETURN tmpB1 ENDFUNC[/code] Note that -- in this [SX/B v2.0 compliant] form -- the RETURN keyword is only used with the function. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=197543#m197556 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)