TStringList.IndexOfName

function IndexOfName(Name: string): Integer Name: name to be searched Result: -1 if not found, index of found name otherwise

Description
IndexOfName searches in the list of strings for a name-value pair with name part Name. If such a pair is found, it returns the index of the pair in the stringlist. If no such pair is found, the function returns -1. The search is done case-insensitive.