I defined this type in a code module
Type PersonInfo
SurName As String * 10
Age As Integer
End Type
and then
Private Sub CommandButton1_Click()
Dim Person1 As PersonInfo, Person2 As PersonInfo
Person1.SurName = "ed"
Person1.Age = 21
Person2 = Person1
MsgBox Person2.SurName
MsgBox Person2.Age
End Sub
to my surprise it worked ie i could put one object equal to another.
does anyone know if equality can be TESTED
ie IF (Person2 = Person1) without iterating thru all of the members?
thanks
Type PersonInfo
SurName As String * 10
Age As Integer
End Type
and then
Private Sub CommandButton1_Click()
Dim Person1 As PersonInfo, Person2 As PersonInfo
Person1.SurName = "ed"
Person1.Age = 21
Person2 = Person1
MsgBox Person2.SurName
MsgBox Person2.Age
End Sub
to my surprise it worked ie i could put one object equal to another.
does anyone know if equality can be TESTED
ie IF (Person2 = Person1) without iterating thru all of the members?
thanks