its Ok....I experimented with "array[0..10] of TComp"   and it works fine.
Unfortunitly I am doing this wee app. in D3 due to a compoent I am using which is not D4 or D5 compatable...cos I have not converted it yet....and so I cant use dynamic arrays...oh well..
 
Thanks to any who replied
 
Jeremy Coulter
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jeremy Coulter
Sent: Friday, December 10, 1999 11:38 AM
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