|
-
Aug 4th, 2000, 11:00 PM
#1
Thread Starter
Member
Questions:
I have a user defined type. I'd like to do a few different things with it:
1. How do I compare two variables like this:
Type MyType
x as integer
y as integer
End Type
Dim a as MyType
Dim b as MyType
a.x = 1
a.y = 0
b.x = 1
b.y = 1
Does 'a' = 'b'?
How do I check? If I do:
if a = b then
whatever!
end if
That doesn't work 
....
My second question.
I have a type:
Type MyType
x as integer
y as integer
End Type
Dim a as MyType
Dim b as MyType
Now, I'd like to create a REFERENCE.
b = a
So that when I access b.x and b.y, it actually accesses a.x and a.y. How do I do that?
Thanks!!
-Daniel
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
|