Hi there,
First, I'm using Delphi 2006.
I've defined 3 classes to implement collection minding in my app.
TclsArtItem = class(TCollectionItem)
TclsArtList = class(TCollection)
TclsArt = class(TCollection)
All works fine but one thing: TCollectionItem must have a member which is of type TCollection. Yes, a recursive architecture...
Here's an example in the real life: a product is built from some products (components) and take part of some other products which in turn can be component of others products...
So, how to create a property in the TCollectionItem class which refers to the TCollection?
Thanks for help,
RC
First, I'm using Delphi 2006.
I've defined 3 classes to implement collection minding in my app.
TclsArtItem = class(TCollectionItem)
TclsArtList = class(TCollection)
TclsArt = class(TCollection)
All works fine but one thing: TCollectionItem must have a member which is of type TCollection. Yes, a recursive architecture...
Here's an example in the real life: a product is built from some products (components) and take part of some other products which in turn can be component of others products...
So, how to create a property in the TCollectionItem class which refers to the TCollection?
Thanks for help,
RC