Disp; Dispxy; Disptime; Getkey - HP 39g Master Manual

Graphing calculator
Hide thumbs Also See for 39g:
Table of Contents

Advertisement

This value must be a valid one. Assigning an initial value outside the range of
the menu may crash the program. If the user presses CANCL then a value
of zero is returned but the program will still continue to execute from that
point unless you include code to terminate it.
DISP <line number>;<expression>
This command breaks the display up
into 7 lines and allows output to them.
Using the DISP command on a line
wipes that entire line to the right hand end of
the screen before display. This means that it is
not possible to use DISP to 'edit' material already present. The DISPXY
command should be used for this purpose.
DISPXY <xpos>;<ypos>;<font>;<expression>
This command displays the text/object/result contained in <expression> at
the screen position specified using the font specified. An extensive example
can be found in the chapter "Programming the hp 39g+" on page 226.

DISPTIME

This command pops up a box displaying the
calculator's internal time and date. These can
be set by storing values to the variables Time
and Date. Suppose the current time is 3:46:29
st
pm on the 1
of December, 1998 then you
would store 15.4629 to Time and 12.011998 to Date.
GETKEY <variable>
This pauses the execution until the user presses a key and stores the code
for the key into the variable for later use. See the manual for how the value
of the key changes according to whether it is pressed with or without the
SHIFT or ALPHA keys. A key code of 53.1 would mean row 5, column 3 and
unshifted. It can't readily be used for games because execution pauses
instead of continuing in the background.
241

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

40g39g+

Table of Contents