Results 1 to 2 of 2

Thread: Compare Array Values

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    8
    How do you compare Array Values?

    I have Array 1 with values:
    1
    2
    3
    4

    I have Array 2 with Values:
    10
    20
    30
    40


    Please help???

    Thanks

    Rey

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    What do you need to compare?
    Code:
    Dim x(5) as Integer
    Dim y(5) as Integer
    Dim i as Integer
    
    For i = 0 to 5
        if x(i) = y(i) Then Debug.Print "Equal"
    Next i
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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