<VARPOS> [ HP DeskManager Customization ] MPE/iX 5.0 Documentation
HP DeskManager Customization
<VARPOS>
Syntax
<VARPOS {varname1} {varname2} >
where:
varname1 unquoted string
varname2 unquoted string
Description
<VARPOS> returns the position of varname2 in varname1. If varname2 is
not present in varname1, it returns 0. The case of the contents of
varname1 and varname2 is significant if the variable contents are
strings.
See also: <STRPOS>, <UPSHIFT>.
Example
&BACK 5 <EQUAL <VARPOS letter s> 0>
This moves back five lines if the value held in the variable s is not
present in the variable letter.
MPE/iX 5.0 Documentation