Re: Programming Question
[Prev][Next][Index][Thread]
You need to remove the 'Then' from the If statements... they are only used
for multiline If statements. You also need doubled equal (==) signs in tests.
Try:
Lbl START
getKy\->\A
If A==0:Goto START
If A==83:Disp "Hello"
If A==22:Stop
Goto START
At 22:50 9/27/96 -0500, 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
>
>
+--------------------------------------------------------+
| Peter Kolbus +1.810.474.0872 |
| ae607@detroit.freenet.org #include <disclaimer.h> |
+--------------------------------------------------------+
| Due to financial problems, the light at the end of |
| the tunnel has been permanently disconnected. |
| |
| Who is General Failure, and who gave him permission |
| to read drive C? |
| |
| ***Written using 100% recycled electrons*** |
| *** (70% post-consumer) *** |
+--------------------------------------------------------+
References: