Watch, Follow, &
Connect with Us

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


ID: 19470, Enumerating A Set

by Dan Donoghue Email: Anonymous


iterate through/enumerate a set to discover which items are in it
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 5.0  to 6.0 1841 downloads
Copyright: No significant restrictions


Size: 1,128 bytes
Updated on Thu, 16 Jan 2003 14:28:25 GMT
Originally uploaded on Thu, 16 Jan 2003 14:26:10 GMT
SHA1 Hash: FA174EA576386D37E29E8D9674A7E7AAD621877B
MD5 Hash: C6496693BD2B6EE64FB8A34A9D49BCAA

    Explore the files in this upload

Description
the snippit of code in this example provides a procedure that gives the you the ability to enumerate/iterate through the options that are currently in a set. The procedure uses a simlpe callback allowing you access to the options as they are found, with the ability to terminate the iteration at any time before it completes. The ForEach command defined in this example will work with any set. You can use simlpe typecasting techniques within the Callback procedure to convert the option (element) number into its equivilsnt option constant.

this code has been tested in Delphi 5, 6 and 7 though i see no reason why it shouldnt work in previous versions and kylix also

   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: ETNACDC04