1. Parenthesis are important in most case
2. I would never jump out of a WHILE statement using a GOTO. Using a flag or Validate the Conditions to get out of the WHILE/WEND loop is, IMHO, a better practice.
Could be also..
Code:
Start:
LOW RENCA
LOW EJECT
While (FootSw=1) OR (Ready=1) : WEND
OR
Code:
Start:
LOW RENCA
LOW EJECT
SpinHere: If (FootSw=1) OR (Ready=1) then SpinHere
You may notice that one method generate less code space than the other.
Last edited by mister_e; - 26th May 2006 at 13:10.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks