TStringList.IndexOf

function IndexOf(const S: String): Integer S: string to be found Result: TRUE if S has been found, FALSE otherwise

Description
The function returns the position of S if it is found in the list, or -1 if the string is not found in the list.