Hi !

 

This subject could be considered out of topic here although it might be
applied to ICS as well. I have not applied such coding to ICS because
currently ICS has to support old Delphi compilers which lacks the required
syntax.

 

I wrote a blog article about writing a class to implement a list of integers
suitable as a component property (TList<Integer> isn't suitable for such
use) having his own property editor. This TIntegerList merely looks like
TStringList but has integers instead of strings. Using the object inspector,
you can edit the list of integers.

    Link:
http://francois-piette.blogspot.com/2012/12/tintegerlist-property-and-proper
ty.html

 

I wrote a second article explaining how to add an enumerator or iterator to
TIntegerList class. Having an enumerator allows you to use the for..in
syntax to iterate thru the list.

    Link:
http://francois-piette.blogspot.com/2012/12/writing-iterator-for-container.h
tml

 

Happy New Year!

-- 

Francois PIETTE

Embarcadero MVP

http://www.overbyte.be

 

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to