HP (Hewlett-Packard) 40gs Calculator User Manual


 
21-28 Programming
Examples
5.152000
X DATE(sets the date to May 15, 2000).
10.1500
X TIME (sets the time to 10:15 am).
EDITMAT Matrix Editor. Opens the Matrix editor for the specified
matrix. Returns to the program when user presses
EDITMAT matrixname:
The EDITMAT command can also be used to create
matrices.
1. Press
CMDS
2. Press M 1, and then press .
The Matrix catalog opens with M1 available for
editing.
EDITMAT matrixname is an alternative to opening the
matrix editor with matrixname. It can be used in a
program to enter a matrix.
FREEZE This command prevents the display from being updated
after the program runs. This allows you to view the
graphics created by the program. Cancel FREEZE by
pressing any key.
FREEZE:
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:
hp40g+.book Page 28 Friday, December 9, 2005 1:03 AM