For several years, I've wanted an integer list analog of TStringlist. I finally decided to write one yesterday and here it
is, TIntList. Most of the code is adapted from TStringlist. I've
tried to include the main features of TStringlist. You can use it
like you would use TStringlist, but with Int64 type integers as the list
elements instead of strings.
I haven't included a Register procedure to make it a component. For
non-visual components, the main disadvantage is that you must manually include
the unit name, UIntList, in the Uses statement of your program.
A simple test project is included which generates and displays 100 random
integers, sorted or unsorted, with a choice of how duplicates are handled.
Addendum: October 10, 2001 - Test program extended to include SaveToFile
and LoadFromFile buttons to test saving and restoring Integer Lists.
Addendum March 30, 2005: The test program was enhanced in
several ways.