PDA

View Full Version : very simple very stupid



ellizard
05-25-2005, 11:42 PM
Hi everybody.

can some of you explain why i'm not able to perform this very simple task?

DO
·Ore=1
DEBUG BIN16 Ore, CR
PAUSE 1000
Ore = (Ore+1)
LOOP
END
the debug windows give me always the same 0000000000000001 without incrementing the variable Ore???


thanks in advance for the help you will give me, i cannot come out of this very silly corner


Stefano

Chris Savage
05-25-2005, 11:45 PM
Hello,

·· That is because in each pass through the loop you're resetting the variable Ore back to 1.· You should place the Ore = 1 before the DO section.






▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com (mailto:csavage@parallax.com)

ellizard
05-25-2005, 11:50 PM
I knew i was doing something stupid

thanks again