Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 12447, Integer list with objects

by Ceci Gross Email: Anonymous


Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 3.0  to 4.0 401 downloads
Copyright: No significant restrictions


Size: 5,449 bytes
Updated on Thu, 13 May 1999 00:00:00 GMT
Originally uploaded on Thu, 13 May 1999 00:00:00 GMT
SHA1 Hash: 2BBC397A122C3F3A8EDE01694E07132DC3E66FEB
MD5 Hash: 77072B0AF0DC4DA37C7D8FA6DB47FC39

    Explore the files in this upload

Description
TIntList is an integer list that works like TStringList except with integers instead of strings. None of the integer list classes I have seen include the associated object list like TStringList does. TIntList includes this. You can also save and load from files and streams, or optionally save and load to and from text files and streams.

TObjIntList descends from TIntList. It overrides several methods to automatically create and free the objects in the associated list. The user of this object simply needs to write and assign a function (OnAutoCreateObject) that creates the object. There is also an OnAutoFreeObject event that can contain anything that you may need to do before freeing an associated object. TObjIntList will then always contain an associated object with an integer, and free it when the integer is removed from the list. This saves you from remembering to create and free the objects yourself.


   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03