Description
The pos function accepts up to three of the parameters described below (the last parameter is optional), searches for one string in another string, and returns the position of the first string in the second string, or zero if the first string was not found in the second string.
Parameter
pos('o', 'Hello world') returns 5
pos('o', 'Hello world', 1) returns 5
pos('o', 'Hello world', 6) returns 8
pos('o', 'Hello world', 9) returns 0
Portability
Operating Systems: All
Standard Pascal: No