Posted on 2000-02-15
Is there an API or other method somehow to clone objects in VB?
Dim objClient As CClient
Set objClient = frmSomething.Client
....and now you want to clear frmSomething.Client, but of course if you set it to nothing, objClient will be nothing as well due to the fact that the Set statement creates a pointer to frmSomething.Client and not a clone of it.
How do you create a clone? (other than declaring a new object variable and manually assigning each property with a let statement!)