HP (Hewlett-Packard) 40G Calculator User Manual


 
Programming 15-25
Print commands
These commands print to an HP infrared printer, for example
the HP 82240B printer. Note: The HP 40G does not have an
infrared port and will not print to an infrared 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
You can use the following commands to prompt users for
input during your program or to provide information to users.
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 default_option_number; title; option
1
; option
2
;
...option
n
where default_option_number 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.