Re: TIB: Get Key


[Prev][Next][Index][Thread]

Re: TIB: Get Key




This way it'll respond faster to keypresses and it won't waste time saving
the value returned by getky into a variable. Also, in my experience, it's a
little faster to use a For/While loop than the goto statement.

Lbl LOOP
0
While ans+AD0APQ-0
getKy
End
If ans+AD0APQ-11
Then
...
End
If ans+AD0APQ-22
Then
...
End
Goto LOOP

+AD4-Yes, basically.  You need to use it in a loop.  Something like this:
+AD4-
+AD4-Lbl LOOP
+AD4-getKy-+AD4-Z
+AD4-If Z+AD0APQ-11 (F1)
+AD4-Then
+AD4-commands
+AD4-End
+AD4-If Z+AD0APQ-22 (EXIT)
+AD4-Then
+AD4-commands
+AD4-End
+AD4-Goto LOOP