G
Guest
Normally, to create an object instance based on a specific class, we can do
this.
Dim someObj As Object
someObj = New Class
However,I want to create an object instance based on a variable or
something. For example, I have 3 classes: Class1, Class2, Class3. The
variable dynamicClass can be equal to any of the 3 classes
Dim someObj As Object
someObj = New dynamicClass
this.
Dim someObj As Object
someObj = New Class
However,I want to create an object instance based on a variable or
something. For example, I have 3 classes: Class1, Class2, Class3. The
variable dynamicClass can be equal to any of the 3 classes
Dim someObj As Object
someObj = New dynamicClass