I'm using Casio BASIC and I'm trying to program a simple application. But I ran into a problem with GetKey that I did not have on my Texas Instrument calculator.
Here is what I was trying to do:
While 1 GetKey->K If K="##" ... IfEnd If K="##" ... IfEnd WhileEnd
As you can see, basically it never stops looping and every time you press a key it does something. In TI-BASIC, after a key was pressed, GetKey would reset back to 0. But it does not do this in Casio BASIC. This means every time it loops, since GetKey does not reset back to 0, it will constantly execute the same IF. Such as, if I had "If K='32'" and I pressed Key #32, it would repeatedly execute the code in the IF because GetKey remains 32 and does not reset like it does in TI-BASIC.
My question is simply how can I reset GetKey and set it back to 0? I tried "0->GetKey" but it does not allow that.
Does anyone know how to do this? I just got a Casio calculator. I'm used to TI-BASIC so I'm not sure how this works completely.