18-12 Programming
6. Open the Program catalog and create a program 
named “EXP.SV”. Include the following code in the 
program. 
Each entry line after the command SETVIEWS is a trio 
that consists of a VIEWS menu text line (a space 
indicates none), a program name, and a number that 
defines the view to go to after the program has run its 
course. All programs listed here will transfer with an 
aplet when the aplet is transferred.
SETVIEWS ’’ ’’; ’’ ’’; 18;
Sets the first menu option to be “Auto 
scale”. This is the fourth standard Function 
aplet view menu option and the 18 “Auto 
scale”, specifies that it is to be included in 
the new menu. The empty quotes will 
ensure that the old name of “Auto scale” 
appears on the new menu. See 
“SETVIEWS” on page 18-14.
’’ My Entry1’’;’’EXP.ME1’’;1;
Sets the second menu option. This option 
runs program EXP.ME1, then returns to 
view 1, Plot view.
’’ My Entry2’’;’’EXP.ME2’’;3;
Sets the third menu option. This option 
runs the program EXP.ME2, then returns to 
view 3, the NUM view.
’’ ’’;’’ EXP.SV’’;0;
This line specifies that the program to set 
the View menu (this program) is 
transferred with the aplet. The space 
character between the first set of quotes in 
the trio specifies that no menu option 
appears for the entry. You do not need to 
transfer this program with the aplet, but it 
allows users to modify the aplet’s menu if 
they want to.
HP 39gs English.book  Page 12  Wednesday, December 7, 2005  11:24 PM