Using Menus For Input; Using Menus To Run Programs - HP 48gII Advanced User's Reference Manual

Graphing calculator
Hide thumbs Also See for 48gII:
Table of Contents

Advertisement

To specify a particular page of a menu, enter the number as m.pp, where m is the menu number and pp is the
page number (such as 94.02 for page 2 of the TIME menu). If page pp doesn't exist, page 1 is displayed (94
gives page 1 of the TIME menu).
Example:
Enter 69 MENU to get page 1 of the MODES MISC menu.
Enter 69.02 MENU to get page 2 of the MODES MISC menu.
To restore the previous menu:
Execute 0 MENU.
!
To recall the menu number for the current menu:
Execute the RCLMENU command (MODES MENU menu).
!

Using Menus for Input

To display a menu for input in a program:
1. Set up the menu — see the previous section.
2. Enter a command sequence that halts execution (such as DISP, PROMPT, or HALT).
The program remains halted until it's resumed by a CONT command, such as by pressing !æ. If you
create a custom menu for input, you can include a CONT command to automatically resume the program when
you press the menu key.
Example:
The following program activates page 1 of the MODES ANGL menu and prompts you to set the
angle mode. After you press the menu key, you have to press !æto resume execution.
« 65 MENU "Select Angle Mode" PROMPT »
Example:
The PIE program on page 2-34 assigns the CONT command to one key in a temporary menu.
Example:
The MNX program on page 2-17 sets up a temporary menu that includes a program containing
CONT to resume execution automatically.

Using Menus to Run Programs

You can use a custom menu to run other programs. That menu can serve as the main interface for an application
(a collection of programs).
To create a menu-based application:
1. Create a custom menu list for the application that specifies programs as menu objects.
2. Optional: Create a main program that sets up the application menu — either as the CST menu or as a
temporary menu.
Example:
The following program, WGT, calculates the mass of an object in either English or SI units given
the weight. WGT displays a temporary custom menu, from which you run the appropriate program. Each
program prompts you to enter the weight in the desired unit system, then calculates the mass. The menu remains
active until you select a new menu, so you can do as many calculations as you want. Enter the following list and
store it in LST:
{
{ "ENGL" « "ENTER Wt in POUNDS" PROMPT 32.2 / »}
{ "SI" « "ENTER Wt in NEWTONS" PROMPT 98.1 / »}
}
OLST ‰
1-50 RPL Programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

49g+

Table of Contents