HP NW280-200X User Manual page 494

Prime graphing calculator
Table of Contents

Advertisement

MOUSE
MSGBOX
PRINT
488
Returns true (non-zero) if the key whose key_id is provided
is currently pressed, and false (0) if it is not.
Syntax: MOUSE[(index)]
Returns two lists describing the current location of each
potential pointer (or empty lists if the pointers are not
used). The output is {x , y, original z, original y, type}
where type is 0 (for new), 1 (for completed), 2 (for drag),
3 (for stretch), 4 (for rotate), and 5 (for long click).
The optional parameter index is the nth element that
would have been returned—x, y, original x, etc.—had the
parameter bee omitted (or –1 if no pointer activity had
occurred).
Syntax: MSGBOX(expression or string [ ,ok_cancel?]);
Displays a message box with the value of the given
expression or string.
If ok_cancel? is true, displays the
buttons, otherwise only displays the
value for ok_cancel is false.
Returns true (non-zero) if the user taps
the user presses
EXPORT AREACALC()
BEGIN
LOCAL radius;
INPUT(radius, "Radius of Circle","r =
","Enter radius",1);
MSGBOX("The area is " +*radius^2);
END;
If the user enters 10 for
the radius, the message
box shows this:
Syntax: PRINT(expression or string);
Prints the result of expression or string to the terminal.
and
.
button. Default
, false (0) if
Programming

Advertisement

Table of Contents
loading

Table of Contents