HP 3000 Manuals

<PARMREM> [ HP DeskManager Customization ] MPE/iX 5.0 Documentation


HP DeskManager Customization

<PARMREM> 

Syntax 

<PARMREM {index} [varname] >

where:

index                 numeric value in the range 1 to 9
varname               unquoted string

Description 

<PARMREM> returns an unquoted string representing the remainder of all
the parameters from the position on the command line represented by index 
onwards.  The index parameter does not represent a character count.  The
varname parameter represents an unquoted string variable and if present,
<PARMREM> will return an unquoted string representing the remainder of
varname starting at the parameter at the position of the variable
specified by index.  Thus, if a command line or string variable contains
more than nine elements it is possible to parse it by repeatedly
"shifting" parameters from right to left.  Although varname is a
variable, it should not be enclosed in a <VAR> sequence.

See also:  <PARM>, <PARMPRES>, <PARMTYPE>.

Example 

     &SAVE op <PARMREM 1>

This saves all the parameters from the script command line in the
variable op.

     &SAVE newop <PARMREM 4>

This saves parameters 4 to 13 from the script command line in the
variable newop.



MPE/iX 5.0 Documentation