my memory is failing me...but is it possible to create a new instance of a class, and have that new instance "inherit" all of the property values of an existing class, and still have those two objects co-exist as separate entities? e.g.,
say there is a class called Class1
p_clsPublic is a public variable of Class1 already containing property values
Dim clsNew As New Class1
'like this, but where clsNew and p_clsPublic will not be pointing to the same memory space
Set clsNew = p_clsPublic
it seems this should be allowed via the CopyMemory API (or maybe not). is it possible? i realize the use of non fixed-length strings causes problems, such as when you want to employ this method with UDTs.
is there an efficient workaround other than writing a routine that does a property-by-property assignment of these values?