Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
Pos(Str, Source : string
Returns an integer specifying the position of the first occurrence of one string within another.
Pos looks for the first complete occurence of Str in Source. If it finds one, it returns the character position in Source of the first character in Str as an integer value, otherwise it returns 0.
Pos is case sensitive.
String Types in Delphi
var s : string;
i : integer;
Understanding and managing string data types in Delphi's Object Pascal. Learn about differences between Short, Long, Wide and null-terminated strings.