I want to write a procedure in a 'Global' unit such that I pass the procedure the name of a form (i.e. 'Form1') as a string.
The procedure will then cycle through the list of components that are in that named form and output them into a TStringList.
I can achieve this (with no hassle) if the procedure is coded within the scope of the form in question.
In order to achieve this I first need to see within the scope of the form (from the external 'Global' unit).
Can anyone suggest a method I can use to first get a lock on the form (the form name as passed to the external 'Global' unit) and then run a list of the components that are found in the form.
How can I do this ?
Thanks in advance.
Steve
The procedure will then cycle through the list of components that are in that named form and output them into a TStringList.
I can achieve this (with no hassle) if the procedure is coded within the scope of the form in question.
In order to achieve this I first need to see within the scope of the form (from the external 'Global' unit).
Can anyone suggest a method I can use to first get a lock on the form (the form name as passed to the external 'Global' unit) and then run a list of the components that are found in the form.
How can I do this ?
Thanks in advance.
Steve