beautypg.com

HP Prime Graphing Calculator User Manual

Page 552

background image

548

Programming

INPUT

Syntax: INPUT(var [,"title", "label", "help", default]);
Opens a dialog box with the title text title, with one field
named label, displaying help at the bottom and using the
default value. Updates the variable var if the user taps

and returns 1. If the user taps

, it does not

update the variable, and returns 0.
Example:

EXPORT SIDES;
EXPORT

GETSIDES()
BEGIN
INPUT(SIDES,"D

ie Sides","N =

","Enter num

sides",2);
END;

Keys 14–19

Keys 20–25

Keys 26–30

Keys 31–35

Keys 36–40

Keys 46–50

Keys 41–45

0

1

2

3

4

6

7

8

9

5

11

12

13

10

Keys 0–13

{

Figure 27-1: Numbers of the keys