Results 1 to 2 of 2

Thread: Object Comparison

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    Ontario, Canada
    Posts
    79
    Does anyone know how to compare two objects together in a condition? For Example:

    Code:
        Dim oObj1 As cClass1
        Dim oObj2 As cClass2
        
        If oObj1 = oObj2 Then
            MsgBox ("Same Class")
        Else
            MsgBox ("Different Class")
        End If
    Thanks!

  2. #2
    Junior Member
    Join Date
    Nov 1999
    Location
    Socal, USA
    Posts
    25

    Same Problem

    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width