18-26 Programming
Print commands
These commands print to an HP infrared printer, for 
example the HP 82240B printer. 
PRDISPLAY Prints the contents of the display.
PRDISPLAY:
PRHISTORY Prints all objects in the history.
PRHISTORY:
PRVAR Prints name and contents of variablename.
PRVAR variablename:
You can also use the PRVAR command to print the 
contents of a program or a note.
PRVAR programname;PROG:
PRVAR notename;NOTE:
Prompt commands
BEEP Beeps at the frequency and for the time you specify.
BEEP frequency;seconds:
CHOOSE Creates a choose box, which is a box containing a list of 
options from which the user chooses one. Each option is 
numbered, 1 through n. The result of the choose 
command is to store the number of the option chosen in a 
variable. The syntax is
CHOOSE variable_name; title; option
1
; option
2
; 
...option
n
:
where variable_name is the number of the option that will 
be highlighted by default whenever the choose box is 
displayed, title is the text displayed in the title bar of the 
choose box, and option
1
...option
n
 are the options listed 
in the choose box.
HP 39gs English.book  Page 26  Wednesday, December 7, 2005  11:24 PM