-->
Page 1 of 1

Separator character for remarks

PostPosted: Thu Jun 09, 2016 11:39 am
by ardhuru
Has the separator changed for remming off a line in ver 3.xx?

I use the ' (single quote) to temporarily disable a line of code, but the code still seems to read the line that follows.

Re: Separator character for remarks

PostPosted: Thu Jun 09, 2016 4:41 pm
by russm
This code works exactly as I expected it to, anything commented does not execute, uncomment the print statements and they do execute:

Code: Select all'Timer blink test
timer 1000, [blipLED]  'This statement calls a subroutine to blink an LED for ~100ms
wait

[blipLED]  'Blink subroutine
io(po,16,1)
'print "On"  'Bad idea on such a tightly timed subroutine, very delayed print
delay 100
io(po,16,0)
'print "Off"  'Bad idea on such a tightly timed subroutine, very delayed print
wait
end

Re: Separator character for remarks

PostPosted: Fri Jun 10, 2016 8:58 am
by ardhuru
That is what I expected, and it works (*most* of the time).

Strange thing is, its not repeatable; just at times, it references to a label name that is contained in a line, although its commented off.

Shall get back with more information the next time it occurs.

Thanks, russm.