How to return a class when I have the class name as a string
Posted on 2004-11-11
Please help! I have a scenario in my app where I have the name of a class (as a string) and I need to pass the class as a parameter.
Below is an similar example. What needs to be done to resolve this?
AClassStringName := 'TLabel';
CreateControl(?????AClassStringName????, 'ANameForTheObject', 10, 10, 100, 200);