How about a dynamic array of pointers to the objects?
 
Dave.
-----Original Message-----
From: Jeremy Coulter [mailto:[EMAIL PROTECTED]]
Sent: Friday, 10 December 1999 11:38 a.m.
To: Multiple recipients of list delphi
Subject: [DUG]: Multiple Dynamic Components

Hi all.
 
I am just tweaking an app. I have been working on for a while now, and I want to have the ability to have multiple components created dynamicaly...ok, that bits fine, BUT if I want to FREE one of them (say dynamic component #5) I cant, as its not a global control, i.e. its created inside a procedure., and there is no ref. to it outside the procedure  its been created in.
The simple answer is ofcourse, jst declear it so that it is visible to the whole app. BUT the problem here is, I am not sure how many I will need, or rather how many the USER will want to have, could be none, could be 10 or even 20...who knows.
 
How then, do I get around this ?  any ideas/suggestons ?
 
thanks,
 
Jeremy Coulter (manager)
Visual Software Solutions

110 Harewood Road
Christchurch
ph +64 3 3521595
fx +64 3 3521596
cell +21 2533214
http://www.vss.co.nz
 

Reply via email to