Parameter String
The Parameter string prompt enables you to set up your
menu so it does more than call applications. It enables you
to define parameters passed to the program when it is
loaded.
For example, if your communications program requires a
telephone number as a parameter when the program loads,
you would type the number at the Parameter string prompt.
In addition, you can create a prompt to solicit a typed input
that is passed to the application as a parameter by using
the string flag %S. In the previous example, you would type
the Parameter string as:
%S,"Enter phone number to call:"
When you press the selected function key, the prompt
Enter phone number to call: [ ]
displays at the bottom of the LM menu. You would then
type a phone number between the square brackets. When
you press ENTER, LM loads the program into memory and
passes the telephone number to the program.
If you want the data you type in response to the prompt
stored and used as a default value each time you load the
program from LM, you can use the buffer flag %A in the
Parameter string. In the previous example, you would type
the Parameter string as
%S="%A","Enter phone number to call:"
With the buffer string in the Parameter string, the telephone
number you typed is saved in the %A buffer and used as
the default value the next time you load the program from
LM.
Adding Applications to the Menu
4-8 Laptop Manager