HP (Hewlett-Packard) 40G Calculator User Manual


 
15-26 Programming
Example
3 & A:CHOOSE A;
"COMIC STRIPS";
"DILBERT";
"CALVIN&HOBBES";
"BLONDIE";
DISP Displays textitem in a row of the display at the line_number.
A text item consists of any number of expressions and quoted
strings of text. The expressions are evaluated and turned into
strings. Lines are numbered from the top of the screen, 1 being
the top and 7 being the bottom.
DISP line_number;textitem
Example
DISP 3;"A is" 2+2
Result: A is 4
(displayed on line 3)
DISPTIME Displays the current date and time.
DISPTIME
To set the date and time, simply store the correct settings in
the date and time variables. Use the following formats:
M.DDYYYY for the date and H.MMSS for the time.
Examples
5.152000 & DATE(sets the date to May 15, 2000).
10.1500 & 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 >6+,)7@
CMDS >@ *A, >6,1@
2. Press >$/3+$@ M 1, and then press >(17(5@.
3. The Matrix catalog opens with M1 available for editing.
EDITMAT matrixname is a shortcut to opening the
matrix editor with matrixname.