Accessing components dynamically
Posted on 1997-05-13
Is there a way in D2 to access an existing component on a form given a string that contains the name of the component?
I'm not clear that something like:
cc: TPersistentClass ;
cc := GetClass('Memo1');
c := TComponentClass(cc).Create(application);
is appropriate because the Memo1 component was already created with the form create. Is there a simple way.
A code snippet would be much appreciated.
component := TComponentClass(