Does anyone know how to compare two objects together in a condition? For Example:
Thanks!Code:Dim oObj1 As cClass1
Dim oObj2 As cClass2
If oObj1 = oObj2 Then
MsgBox ("Same Class")
Else
MsgBox ("Different Class")
End If
Printable View
Does anyone know how to compare two objects together in a condition? For Example:
Thanks!Code:Dim oObj1 As cClass1
Dim oObj2 As cClass2
If oObj1 = oObj2 Then
MsgBox ("Same Class")
Else
MsgBox ("Different Class")
End If
Hello,
I'm having the same problem. Is there a way to do this without checking each property? How about checking to see if the property is equal to nothing?
Thanks!