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

All overlapping substrings matching a java regex -

c++ - Using OpenSSL in a multi-threaded application -

php - Deleting/Renaming a locked file -