Using dedicated program functions, Redefining the view menu – HP Prime Graphing Wireless Calculator User Manual
Page 265
![background image](/manuals/397843/265/background.png)
Programming in HP PPL
261
Using
dedicated
program
functions
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.
Redefining
the View
menu
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
V
you will see SetSides, RollDice, and PlotResults
instead of the app’s default view list.
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