In SX Microcontrollers, SX/B Compiler and SX-Key Tool, maxwin wrote: When I tried it, I found that the variable (provided global) would already contain the value... So: [code]tmpB1 = RX_BYTE WATCH tmpB1 '[/code] could also be just: [code]RX_BYTE WATCH tmpB2[/code] .. ie. watch the temp value used in the function, and consume it in your code. This is madly confusing perhaps, and great care should be taken that the tmp variable is not altered by another routine. This principle would apply in the case of a SUB or FUNC. But as JonnyMac said; that this is "bad form". It does not make for portable code and can often lead to errors due to other parts of the program using the same tmp vars. Although, applied with care, it would appear perfectly valid and may be a useful technique if compacting and saving on variable space becomes necessary. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=197543#m306963 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)