PDA

View Full Version : Converting CLEAR in Proton basic to picbasic pro



Nobby123
- 18th October 2013, 09:52
I am converting a program in Proton basic to picbasic pro 3.
Proton uses CLEAR to reset a variable but is there a command in picbasic pro 3 that does the same thing?
I can't seem to find an equivalent in the manual.

Thanks.

HenrikOlsson
- 18th October 2013, 11:03
myVAR = 0 will set it 0 if that's what you mean.
If you have an array you'll need to loop thru it and set each entity to 0.

In PBP the command CLEAR will clear the complete RAM, just as it will in PROTON if CLEAR is used by itself.

/Henrik.

Nobby123
- 19th October 2013, 09:19
Hi Henrik.
Thanks for the reply and clearing that up.
Nobby123