Re: newbie - what's wrong with my simple program?


[ Follow Ups ] [ BasicCard User Forum ]

Posted by zeitcontrol (145.254.142.166) 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:

Hello gauthier,

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 :

Call WaitForCard()
ResetCard : Call CheckSW1SW2()
Call YourCommand()

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.




Follow Ups:


[ Follow Ups ] [ BasicCard User Forum ]