SeeView Manual

SeeView Statements and Script Symbols
HP NonStop SeeView Manual526355-004
9-77
PA R M
IO and OUT
indicates that the variable is a reference parameter. Value assignments within the
procedure are returned to the calling variable. The only difference between IO and
OUT is that IO documents whether the value passed to the procedure by the caller
used by the procedure declaring the parameter.
variable
specifies additional procedure parameter variable names.
Considerations
To pass parameters to a procedure, use the CALL statement. You must declare
parameters in the same order they are passed in the CALL statement.
You can specify initial values for the parameter at declaration.
All parameters are optional.
Examples
These two examples demonstrate the PARM statement.
The first example follows:
?MENU person
{-----------}
Name [John Smith ]<==?
Address [500 Park, AnyTown, IL ]<==?
Phone [708-555-5555 ]<==?
*
?PROC GetPerson ( #firstName, #lastName, #address, #phone, escape)
{----------------------------------------------------------------}
{ This proc prompts for a person's name, address, and phone number.
{
{ A panel is first displayed prompting for this information.
{ The panel information is then accepted when a function key is
{ pressed. The first and last names are parsed from the name
{ field, and the proc then returns the #firstName, #lastName,
{ #address, and #phone number.
{