Using Msgbox To Display Output; Using Menus With Programs - HP 48gII Advanced User's Reference Manual

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

Advertisement

Using MSGBOX to Display Output

To set up a message box:
1. Enter a message string.
2. Execute the MSGBOX command.
Enter the string "HELLO, WORLD" `.
Example:
Execute MSGBOX (!°L %OUT% %MSGBO%).
The following message appears:
You must acknowledge a message box by pressing %OK% or −.

Using Menus with Programs

You can use menus with programs for different purposes:
Menu-based input. A program can set up a menu to get input during a halt in a program and then resume
!
executing the same program.
Menu-based application. A program can set up a menu and finish executing, leaving the menu to start
!
executing other related programs.
To set up a built-in or library menu:
1. Enter the menu number.
2. Enter the MENU command (MODES MENU menu).
To set up a custom menu:
1. Enter a list (with { } delimiters) or the name of a list defining the menu actions. If a list of two element lists
is given, the first element appears in the menu, but it is the second element that is returned to the stack when
the menu key is pressed. This second element can itself be a list with up to 3 objects, one for the menu key,
one for the left shift menu key and one for the right shift menu key.
2. Activate the menu:
To save the menu as the CST menu, enter the MENU command (MODES MENU menu).
!
To make the menu temporary, enter the TMENU command (MODES MENU menu).
!
The menu isn't displayed until program execution halts.
Menu numbers for built-in menus are listed in Appendix H. Library menus also have numbers — the library
number serves as the menu number. So you can activate applications menus (such as the SOLVE and PLOT
menus) and other menus (such as the VAR and CST menus) in programs. The menus behave just as they do
during normal keyboard operations.
You create a custom menu to cause the behavior you need in your program — see the topics that follow. You
can save the menu as the CST menu, so the user can get it again by pressing !£. Or you can make it
temporary — it remains active (even after execution stops), but only until a new menu is selected — and it
doesn't affect the contents of variable CST.
RPL Programming 1-49

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

49g+

Table of Contents