Programming
267
Replace the
command in the previous example
with the
MSGBOX
command to:
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:
CHOOSE
Syntax:
CHOOSE
(
var, "title", "item1", "item2",…,"itemn
")
Displays a choose box with the given title and containing
the choose items. If the user selects an object, the variable
whose name is provided will be updated to contain the
number of the selected object (an integer, 1, 2, 3, …) or
0 if the user presses
.
Returns true (non zero) if the user selects an object,
otherwise return false (0).
Example:
CHOOSE(N,"Pick
Hero","Euler","Gauss","Newton");
IF N==1 PRINT("You picked Euler")
;
END
ELSE IF N==2
PRINT("You picked
Gauss");END
ELSE IF N==3
PRINT("You picked
Newton");END
END;
After execution of
CHOOSE
, the value of
n
will be updated
to contain 0, 1, 2, or 3. The
IF THEN ELSE
command
π
Summary of Contents for 39gII
Page 1: ...HP 39gII graphing calculator user s guide Edition1 Part Number NW249 90001 ...
Page 2: ...Printing History Edition 1 November 201 1 ...
Page 32: ...22 Getting started ...
Page 58: ...48 Apps and their views ...
Page 70: ...60 Function app ...
Page 80: ...70 Solve app ...
Page 136: ...126 Polar app ...
Page 140: ...130 Sequence app ...
Page 148: ...138 Finance app ...
Page 152: ...142 Linear Solver app ...
Page 218: ...208 Matrices ...
Page 226: ...216 Notes and Info ...
Page 238: ...228 Variables and memory management ...
Page 318: ...308 Programming ...
Page 340: ...330 Reference information ...
Page 346: ...vi Product Regulatory Information ...