Pos:
Locates a substring in a given string.
The Pos method returns an index of the first occurence of Substr in Str, starting the search at Offset.
This method returns zero if Substr is not found or Offset is invalid (for example, if Offset exceeds the String length or is less than 1).
AnsiPos:
Locates the position of a substring.
Call AnsiPos to obtain the byte offset of the Substr parameter, as it appears in the string S. For example, if Substr is the string "AB", and S is the string "ABCDE", AnsiPos returns 1. If Substr does not appear in S, AnsiPos returns 0.