I used VarType (y). The result is 8, for vbString. This should be 9 for the object. - ssorrrell 1 hour ago
Use Print y in the Immediate window to find the contents of y. - ssorrrell 55 minutes ago
This seems to confirm my suspicions. The class MyOwn.Objectmust have a default property or method that returns a string.
, Debug.Print / . IDE, VB6 / . VarType y, .
, Variant, Object, , .
, MyOwn.Object , MyOwn.Object . , , , . , , , .
, Variant Object S, . , y As Object, Debug.Print y - , VarType(y) - 8 ().
, VB6 , . , y Object, TypeName(y) MyOwn.Class, VarType(y) 8 (). , y Variant, TypeName(y) String.
, , Object Variant.