TI 83/84
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   Dev Hardware ForumsSOFTWARETI 83/84

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Hardware Forums Sponsor:
  Trader Rating: 0 · #1  
Old June 5th, 2008, 06:11 PM
parkaveultra parkaveultra is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 1 parkaveultra User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 3 sec
Reputation Power: 0
Return to Menu

I'm creating a program that displays geometry formulas and it has a menu. how do i program it so that after i view a selection from the menu, it returns to the menu?

Reply With Quote
  Trader Rating: 0 · #2  
Old June 6th, 2008, 06:48 AM
MrLarkins's Avatar
MrLarkins MrLarkins is offline
The HS Math Teacher
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Oct 2007
Location: Central Arkansas
Posts: 46 MrLarkins User rank is Corporal (100 - 500 Reputation Level)MrLarkins User rank is Corporal (100 - 500 Reputation Level)MrLarkins User rank is Corporal (100 - 500 Reputation Level)MrLarkins User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 8 h 12 m 20 sec
Reputation Power: 2
Send a message via ICQ to MrLarkins
Quote:
Originally Posted by parkaveultra
I'm creating a program that displays geometry formulas and it has a menu. how do i program it so that after i view a selection from the menu, it returns to the menu?


hmm, would be nice to see your code, but without it...this is what i'd do:
Code:
Lbl 1
Menu("Geometry","Area of Triangle",A,"Area of Rectangle",B,"Quit",C)
Lbl A
Disp "Area of Triangle"
Disp "= (1/2)BH"
Prompt B,H
Disp "A=",.5BH
Pause
Goto 1 //returns to main menu after you saw answer to formula
Lbl B
Disp "Area of Rectangle"
Disp "= BH"
Prompt B,H
Disp "A=",BH
Pause
Goto 1 //returns to main menu after you saw answer to 
Lbl C
Stop


how's that? I used a 'Goto' command to go back to the main menu...you have to place a 'Lbl' in before you menu though.
__________________

..................|| OSKgaming.com || MrLarkins.com || ...................

Reply With Quote
  Trader Rating: 0 · #3  
Old June 24th, 2008, 10:55 AM
zilchonum zilchonum is offline
Contributing User
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 35 zilchonum User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 53 m 31 sec
Reputation Power: 1
It would take less space to start a 'While' loop, like this:

While Z
Menu("Stuff goes here")

Lbl A
Disp "Stuff"
End //here's where you go to the top

Lbl B
Disp "Stuff"
End //same here

Lbl EE //this one ends the loop
0->Z
End

EDIT: After viewing the code, i decided it might not work... you'll have to test the part that ends the loop to make sure it goes to the right "End", e.g.

The program could go from Lbl EE to End, and then when it checks (and terminates) the loop it'll go to the first end instead of the last one it was at... it might not, too... you could also look up "TI-BASIC subroutines" online for more ideas.

Last edited by zilchonum : July 3rd, 2008 at 02:03 PM. Reason: Could be an error...

Reply With Quote
Reply

Viewing: Dev Hardware ForumsSOFTWARETI 83/84 > Return to Menu


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway