Creating a new program, The program editor – HP Prime Graphing Calculator User Manual

Page 505

Advertising
background image

Programming

501

Creating a new program

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.

H I N T

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.

The Program Editor

Until you become familiar with the HP Prime commands,
the easiest way to enter commands is to select them from
the Catalog menu (

D

), or from the Commands

menu in the Program Editor (

). To enter variables,

Advertising