pos


function pos(str1, str2: string): integer;

Returns the position of the first occurence of 'str2' in 'str1', or -1 if 'str2' does not occur in 'str1'. The comparison is case-sensitive.

See also: copy, length