beautypg.com

Print commands, Drawing commands -19, Prompt commands – HP 39g Graphing Calculator User Manual

Page 233

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

background image

Print commands

PRDISPLAY

PRHISTORY

PRVAR

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.

Prints the contents of the display.

PRDISPLAY

Prints all objects in the history.

PRHISTORY

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

CHOOSE

You can use the following commands to prompt users for
input during your program or to provide infonnation to users.

Beeps at the frequency and for the time you specify.

B E E P frequency; seconds

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 defaultjtptionjtumber, title', optionp option

2

,

...option^

where default_optionjiwnber 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 ¡...option^ are the options listed in the

Choose Box.

Programming

15-25