Re: Programming Question


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

Re: Programming Question



Well, if thats all you want to do... id do it like this:


While 1
getKey->A
if A=83:Disp "HELLO"
End


I dont know if while's are more effieient in TI BASIC or not(well, they
do atleast take less space :), but in bash they are, so ive always used
while instead of goto.


On Fri, 27 Sep 1996, Micah Gibson wrote:


>         I've been messing around with the little getkey program in TI-BASIC,
> and I tried to get it to display "Hello" when I pressed the "5" key. I've
> tried several different routines but couldn't get it to work. Can someone
> please tell me what to put into the program in order to make it work. Thanx!
>
> Original program:
>
> Lbl START
> getKy/->/A
> If A
> Disp A
> Goto START
>
> I have tried:
>
> 0/->/A
> Lbl START
> getKy/->/A
> If A=0:Then:Goto START
> If A=83:Then:Disp "Hello"
> Goto START
>
>                                                         -Micah Gibson
>                                                          -dgibson@ns.vvm.com
>
>


References: