As of October, 2016, Embarcadero is offering a free release
of Delphi (Delphi
10.1 Berlin Starter Edition ). There
are a few restrictions, but it is a welcome step toward making
more programmers aware of the joys of Delphi. They do say
"Offer may be withdrawn at any time", so don't delay if you want
to check it out. Please use the
link to let me know if the link stops working.
Support DFF - Shop
If you shop at Amazon anyway, consider using
this link. We receive a few cents from each purchase.
Support DFF - Donate
If you benefit from the website, in terms of
knowledge, entertainment value, or something otherwise useful,
consider making a donation via PayPal to help defray the
costs. (No PayPal account necessary to donate via credit
card.) Transaction is secure.
e-mail with your comments about this program (or anything else).
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
|The test lists of integers now have attached objects containing the
numbers written as words. |
|Custom Sort examples show how to sort the list in alternative
|Find, Add, and Delete function tests are included.|
|An exception handler detects and diagnoses attempt to add numbers to a
list with Sorted property set to true when the Duplicates
property is set to DupError.|
|This is the initial program using the DFF Library to obtain the UIntList
unit containing the TIntList class definition. All this means is
that UIntList is not included in the zipped source file for the test
program. It is contained in the zipped library file. |
Download TIntList Test Source
(Requires DFFLIBV02 or later to compile)
Download DFF Library Source (Current version
|Created: February 21, 2001
February 18, 2016