Wow...from the man himself! cool.
I figured it was something to do with formatting (the errors I was seeing alluded to it... hence me experimenting the space after the @ !!)
Anyway, in the light of your info ...it all compiles fine! (*many* thanks!)
My problem now is a simple one, why is my 'if' condition not being met when the 1 key is being pressed on my PC keyboard...
Code:
loop:
if mybyte="1" then
hserout ["got it!"]
endif
if mybyte<>"1" then
hserout ["DIDN'T GET IT!",13,10]
hserout [mybyte,13,10] ' (tried to add in this line to see onscreen what the content of mybyte is - nothing output!)
PAUSE 499
mybyte=0
endif
goto loop
(hey, I can do boxes now too! tks Ioannis)
All I see on my ASCII terminal when the program is running is "DIDN'T GET IT!" scrolling down - which suggests that when I press the "1" key, the content of variable mybyte is not 00000001 (but possibly an ASCII interpretation of the number 1 (the ASCII for 1 is 49 tried that but it errored!).
I normally spontaneously combust as I try to work out what I should be 'matching' against, so could someone save the fire brigade a visit here - it makes a terrible mess of the carpet!
Many thanks!
Bookmarks