Posted by zeitcontrol
(220.127.116.11) on April 11, 2003 at 07:46:00:
In Reply to: newbie - what's wrong with my simple program? posted by gauthier on April 09, 2003 at 06:51:50:
For your card program :
The two variable Code and Code% (so as PinCode and PinCode%) are not identical. Now you assign your pin (or whatever you think of) to the wrong variable.
You should use the "option explicit" statement at the begin of your program to avoid this kind of errors.
For your terminal program:
I hope this is not your complete terminal program. For a running terminal program you need some initialization like :
You should always review the SW1SW2 variable after executing a command.
Please check the examples (like the calc example) how to set up a terminal program.