Re: TIB: GetKey
[Prev][Next][Index][Thread]
Re: TIB: GetKey
I did specify that I was getting it from my TI-92, and you can't use Ans for a
variable (for some reason they took out the home screen ability in this
series). But I was going for the ability to turn a key on and off, like
enabling and disabling them.
-Rob
{{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
>}}