int = Pos(sSubString,sString)
This macro function will search for a sub-string sSubString in a larger string sString.
If the sub-string is found the function returns the position at which the first occurrence of this sub-string occurs. Otherwise the function returns zero.
Pos('A','Aardvark') = 1
Pos('a','Aardvark') = 2 // case sensitive !
Pos('a','Art') = 0
This function is case-sensitive (ie. 'Hello' is not the same as 'hello').
See also: PosNth.
Topic 105107, last updated on 18-Apr-2020