Re: Programming with menus


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

Re: Programming with menus



Actually he had a problem much more complex than that.  He had the syntax
correct, but something wasn't right with it:

:Menu(1,"Something",A)
:Lbl A
:Disp ""

But it didn't work.  I eventually got it to work for him.


----Original Message Follows----
From: Admiral Cyclops <cyclops@MAILANDNEWS.COM>
Reply-To: Admiral Cyclops <mrcyman@mindless.com>
To: CALC-TI@LISTS.PPP.TI.COM
Subject: Re: Programming with menus
Date: Sun, 28 May 2000 17:53:27 -0700

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If you are using the Menu( command then you need nothing after it...

The Menu command goes by labels (although I recommend a label BEFOR the
Menu command to make sure you can get back to it once executed), it takes
you to whatever label is associated with the chosen item automatically

Lbl A
Menu(....)
Lbl 1
..
Goto A
Lbl 2
..
Goto A
Lbl 3
..
Goto A

If you are using the GetKey to get a keypress from the system you must use
If/Then statments to choose which to go to. (  -> is the stored as button)


GetKey -> A
If A = ... :Then
..
End
If A = ... :Then
..
End

etc....

You can also use the GetKey to program a subroutine that does a menu
similar to the TI-82 menu (I personally like those better in some
situations) where you have a list and use arrow keys to select the item but
that is more involed and I've never actually cared enough to mess with it.

- -----Original Message-----
From: Matt Roode <mattroode@HOTMAIL.COM>
To: CALC-TI@LISTS.PPP.TI.COM <CALC-TI@LISTS.PPP.TI.COM>
Date: Sunday, May 28, 2000 12:46p
Subject: Programming with menus


I am a beginning programmer who learns by doing.  I am writing a program on
a TI-86 involving menus.  I can't get my program to get past the point
where I select a menu item.  I do that and then I do not know what to put
as a next command line after that.  If you can help out a beggining
programmer, please do.  Thank you.

-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.3
Comment: http://members.xoom.com/mrcyman/pgp.html

iQA/AwUBOTG/hWs/si9n+BFxEQIvtQCdGsERZFR9wvZNXPh8uA81/dfJQdcAnjKH
0vkrdCe82t/TKhU92WKBtkyX
=WCvA
-----END PGP SIGNATURE-----

******************************************************************
* To UNSUBSCRIBE, send an email TO: listserv@lists.ppp.ti.com
* with a message (not the subject) that reads SIGNOFF CALC-TI
*
* Archives at http://peach.ease.lsoft.com/archives/calc-ti.html
******************************************************************


--Robert Mohr--
rmohr02@smpr.cjb.net
AIM:  rmohr02                 ICQ:  70640281
MSN:  rmohr02                 Y!M:  rmohr02

Member of Smallville Productions
http://smpr.cjb.net/

Reviewer at TICalc.Org
http://www.ticalc.org/

"Nonflammable is not a challenge." -- Bart Simpson

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

******************************************************************
* To UNSUBSCRIBE, send an email TO: listserv@lists.ppp.ti.com
* with a message (not the subject) that reads SIGNOFF CALC-TI
*
* Archives at http://peach.ease.lsoft.com/archives/calc-ti.html
******************************************************************