POS p,substring,string[,start,length]
POS statement searchs substring inside string; if found, position is in p, if not found, p value is zero; if start is specified, is the starting position of search inside string (default is 1). Optional length parameter overrides the predefined length of the input substring and so must be <= of this predefined length.
Parameter Name Mode Type coding Remark 1 p Output Integer F or H Position searched 2 substring Input String C or X or const. String to search; max length 255 char. 3 string Input String C or X String inside which to do the search; max length 255 char. 4 start Input Integer F or H or const. Start inside 3rd parameter; first character has position 1 5 length Input Integer F or H or const. Length overrides string length of the 2nd parameter
Back | Start | Next |
OVERLAY | Top | LENGTH |