Create a menu - TI 89

Introduction
This program can be referenced in any desired program that generates numerical values. When the desired program is run, a menu will pop up asking the user to choose between Exact mode and Approximate mode.
 
If you have not used one of the programs posted on this website before, you should read through the information in the Intro to Programming section first.


The Program
:choose( ) {This will already appear if you named the program choose}
:Prgm {this will already appear}
:PopUp  {"approx","exact"}, g {PopUp is in the CATALOG menu}
:If g=1 Then {If, Then are in the CATALOG menu}
:setMode ("Exact/Approx","Approximate")msave {setMode, msave are in the CATALOG menu}  
:Else {Else is in the CATALOG menu}
:setMode ("Exact/Approx","Exact")msave
:EndIf {EndIf is in the CATALOG menu}
:EndPrgm {this will already appear}


Running the program
 
There is no real need to run this program by itself. It is best to include it is another program. The command line  :choose( ) should be typed into the desired program after the command line  :Prgm. If you want to test the menu, you can run the program choose( ).