HP (Hewlett-Packard) 39gs Calculator User Manual


 
Programming 18-29
GETKEY Waits for a key, then stores the keycode rc.p in name,
where r is row number, c is column number, and p is key-
plane number. The key-planes numbers are: 1 for
unshifted; 2 for shifted; 4 for alpha-shifted; and 5 for both
alpha-shifted and shifted.
GETKEY name:
INPUT Creates an input form with a title bar and one field. The
field has a label and a default value. There is text help at
the bottom of the form. The user enters a value and
presses the menu key. The value that the user enters
is stored in the variable name. The title, label, and help
items are text strings and need to be enclosed in double
quotes.
Use
CHARS to type the quote marks " ".
INPUT name;title,label;help;default:
Example
INPUT R; "Circular Area";
"Radius";
"Enter Number";1:
MSGBOX Displays a message box containing textitem. A text item
consists of any number of expressions and quoted strings
of text. The expressions are evaluated and turned into
strings of text.
For example, "AREA IS:" 2+2 becomes AREA IS: 4.
Use
CHARS to type the quote marks " ".
MSGBOX textitem:
Example
1
A:
MSGBOX "AREA IS: "π*A^2:
You can also use the NoteText variable to provide text
arguments. This can be used to insert line breaks. For
example, press
NOTE and type AREA IS .
The position line
MSGBOX NoteText " " π*A^2:
will display the same message box as the previous
example.
HP 39gs English.book Page 29 Wednesday, December 7, 2005 11:24 PM