Skip to main content
Participant
December 27, 2007
Answered

Type convertion from String to Class

  • December 27, 2007
  • 1 reply
  • 264 views
How do i convert String Type to Class..
I wish to dynamically create a new instance of a class.

eg.
If i have a sring "className1"
how to create a new instance by -> new className1()

thx in advance
Angel
This topic has been closed for replies.
Correct answer BSpero-9w1iVb
Angel,
I asked this a few weeks ago and got this. It was in response to a specific question about feeding a number to create a class, but the idea is there. Its in the "getDefinitionByName()".

1 reply

BSpero-9w1iVbCorrect answer
Inspiring
December 27, 2007
Angel,
I asked this a few weeks ago and got this. It was in response to a specific question about feeding a number to create a class, but the idea is there. Its in the "getDefinitionByName()".
^Angel^Author
Participant
December 28, 2007
Hi BSpero

Thx a million !!
It's working fine ..
:D

Angel