The TUnSortedStrCollection object manages an unsorted list of strings. To this end, it overrides the TStringCollection.Insert (??) method to add strings at the end of the collection, rather than in the alphabetically correct position.
Take care, the Search (615) and IndexOf (596) methods will not work on an unsorted string collection.
Here is the full declaration of the TUnsortedStrCollection object:
TYPE TUnSortedStrCollection = OBJECT (TStringCollection) Procedure Insert (Item: Pointer); Virtual; END; PUnSortedStrCollection = ^TUnSortedStrCollection; |
Listing: objectex/ex39.pp