Re: TIB: GetKey


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

Re: TIB: GetKey





If you want the best advice, tell us what you want to do in you
program with getkey.

Best way I see is:

Lbl A
0
While ans = 0
getkey
End
if ans=1
Then
...
...
...
End
if ans=2
then
...
...
...
End
goto A

Storing the getkey into ans saves the time it would take to store it
to a variable, not to mention a couple of lines of code.

Philipp Keller


>then you could just take it and do the following:
>
>GetKey
>0->C
>Lbl A
>0->A
>Lbl B
>Getky()->A
>If A=0:Goto B
>For(B,1,LDim(L1))
>If A=L1(B):B->C
>End
>If C=0:Goto A
>C
>