WORD [ HP Business BASIC/XL Reference Manual ] MPE/iX 5.0 Documentation
HP Business BASIC/XL Reference Manual
WORD
The WORD function returns the position of an embedded substring within a
string. The substring is considered embedded only if the characters
surround the substring are nonalphabetic.
Syntax
WORD(S1$,S2$)
Parameters
S1$ A string expression containing the string to be
searched.
S2$ A string expression containing the substring to be found
in S1$.
Examples
10 A = WORD("cat","a") !A = 0
20 B = WORD("a cat","a") !B = 1
30 C = WORD("c a t","a") !C = 3
40 D = WORD("c,a.t","a") !D = 3
MPE/iX 5.0 Documentation