Hi Is there an elegant way to determine which string is mostly represented
in
a TStringList? For instance if I've got the following the function should
return 'Delphi': StringList[0] := 'Pascal'; StringList[1] := 'Pascal';
StringList[2] := 'Delphi'; StringList[3] := 'Delphi'; StringList[4] :=
'Delphi'; - Wed, Nov 21 2007 1:04 pm
1 message, 1 author
Probably the fastest way to do this is to hash each item to an
integer and then count the occurrences of each hash value.
Frank Rubin