beautypg.com

Creating a new program – HP Prime Graphing Wireless Calculator User Manual

Page 245

background image

Programming in HP PPL

241

Creating a new program

In the following few sections, we will create a simple
program that counts to three as an introduction to using
the Program editor and its menus.
1. Open the Program

Catalog and start a
new program.

Sx

(Program)

2. Enter a name for the

program.

AA

(to lock

alpha mode)
MYPROGRAM

.

3. Press

again.

A template for your
program is then
automatically
created. The
template consists of
a heading for a
function with the
same name as the program, EXPORT
MYPROGRAM(), and a BEGIN–END; pair that will

enclose the statements for the function.

T i p

A program name can contain only alphanumeric

characters (letters and numbers) and the underscore

character. The first character must be a letter. For

example, GOOD_NAME and Spin2 are valid program

names, while HOT STUFF (contains a space) and
2Cool! (starts with number and includes !) are not valid.