Using dedicated program functions

Redefining the View menu

There are nine dedicated program function names, as shown in the table below. These functions are called when the corresponding keys shown in the table are pressed. These functions are designed to be written into a program that controls an app and used in the context of that app.

Program

Name

Equivalent

 

 

Keystrokes

 

 

 

Symb

Symbolic view

Y

SymbSetup

Symbolic Setup

SY

Plot

Plot view

P

PlotSetup

Plot Setup

SP

Num

Numeric view

M

NumSetup

Numeric Setup

SM

Info

Info view

SI

START

Starts an app

 

RESET

Resets or

 

 

initializes an app

 

 

 

 

The View menu allows any app to define views in addition to the standard seven views shown in the table above. By default, each HP app has its own set of additional views contained in this menu. The VIEW command allows you to redefine these views to run programs you have created for an app. The syntax for the VIEW command is:

VIEW "text", function()

By adding VIEW "text", function() before the declaration of a function, you will override the list of views for the app. For example, if your app program defines three views—"SetSides", "RollDice" and "PlotResults"—when you press Vyou will see SetSides, RollDice, and PlotResults instead of the app’s default view list.

Programming in HP PPL

521

Page 527
Image 527
HP Prime Graphing NW280AAABA manual Using dedicated program functions Redefining the View menu, Starts an app