Results 1 to 2 of 2

Thread: Help! I need help quick.

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2000
    Location
    Ontario, CANADA
    Posts
    37

    Angry

    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


  2. #2
    Guest
    first Question:

    you will have to check each of the properties individually i think.

    second question:

    Code:
    Set b = a

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