|
-
January 12th, 2008, 10:37 PM
#1
comparing all fields of a type
suppose I have a user type suche as
Private Type Bogus
value1 as Integer
value2 as Long
stingbean as String
End Type
'....
Dim test1 as Bogus
Dim test2 as Bogus
test1.value1=123
test1.value2=345
test1.stringbean="hello"
test2.value1=123
test2.value2=345
test2.stringbean="hello"
Now obviously test1=test2 , but how can I check this in a program??
trying: if test1=test2.... gives an error. How can you compare all of the components of test1 & 2 (without having to spell each name separately)...I may have a good dozen or so pices in my type definition. I think there is a way to do it in a loop, but don't know the syntax.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|