-
I've been trying to dinamically create instances of a class that I created but it seems that VB6 does not provide a lot of support on this topic.
I can use:
Code:
public myClass as new classType
or
Code:
dim myClass as new classType
but it is not enough.
Is there anything like a pointer to a class like in C++? Say, what is the equivalent of this in VB:
Code:
myClass *pointer;
pointer = new myClass;
.
.
.
Thanks!
-
Well, you can declare an object reference:
Code:
Dim x as MyClass
Dim y as New MyClass
Set x = New MyClass
Set x = Nothing ' Destroy
Set x = y