<STRPOS> [ HP DeskManager Customization ] MPE/iX 5.0 Documentation
HP DeskManager Customization
<STRPOS>
Syntax
<STRPOS {string1} {string2} >
where:
string1 quoted string
string2 quoted string
Description
<STRPOS> returns the numeric position of string2 in string1. If string2
is not present in string1, it returns 0. The case of the contents of the
strings is significant, therefore you may want to use the <UPSHIFT>
function if you want the case to be ignored.
See also: <UPSHIFT>, <VARPOS>.
Example
&BACK 5 <EQUAL <STRPOS "abcdefg" <VAR s>> 0>
This moves back five lines if the string held in the variable s is not
lower case and contained in the string abcdefg.
MPE/iX 5.0 Documentation