pcplayer: Delphi.Classes.TStrings.IndexOf()也是遍历 [阅读: 1197] 2004-09-05 04:35:30 function TStrings.IndexOf(const S: string): Integer; begin for Result := 0 to GetCount - 1 do if CompareStrings(Get(Result), S) = 0 then Exit; Result := -1; end;