creating a vcl object using the class name

Hi,

what I want to do is the following:
- Read a string, say "TEdit";
- Create the object without using a switch or if statement like:
if (String == "TEdit")
  AObject = new TEdit(...);
else if (String == "TComboBox")
  AObject = new TComboBox(...);

I want it to do like Delphi and C++ Builder do with .dfm files. Read
in the class name and then create and instance of it.

I hope somebody has the solution!

Greetz,

E. Velema