C
CJ Taylor
I think I've seen this somewhere, but I cannot remember how to initialze a
class by a string.
That is, I have a class(Component) that I want to initialize on the fly. It
is derived from a base component I created.
So basically I have.
Public class myDerivedComponent
inherits myBaseComponent
.... stuff ...
End Class
and in another code I want to have
dIm myString as String = "myDerivedComponent"
Dim myD as myBaseComponent
myD.InstanceOf (myString)
Hopefully this makes sense.
-CJ
class by a string.
That is, I have a class(Component) that I want to initialize on the fly. It
is derived from a base component I created.
So basically I have.
Public class myDerivedComponent
inherits myBaseComponent
.... stuff ...
End Class
and in another code I want to have
dIm myString as String = "myDerivedComponent"
Dim myD as myBaseComponent
myD.InstanceOf (myString)
Hopefully this makes sense.
-CJ