oop - VBA: how to test for object equality (whether two variables reference the same object) -


what operator or function test whether 2 variables of same custom object type refer same object? i've tried

if myobject = yourobject 

but runtime error 438 object doesn't support property or method. i'm guessing that's telling me override '=' operator test if fields of 2 objects have same value. want test whether same object.

i'm guessing that's telling me override '=' operator test if fields of 2 objects have same value.

no, tells objects don't have default property have been called otherwise, , returned results compared.

you test reference equality is

if myobject yourobject  

Comments

Popular posts from this blog

Glib GIOChannel -

delphi - When I encode/decode SMS PDU (GSM 7 Bit) user data, do I need prepend the UDH first? -

python - Obscure curses error message when creating a sub window -