Posted By

jlvallelonga on 12/31/09


Tagged

array arrays compare ASP values equal ubound


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

benrudolph


Are Arrays Equal


 / Published in: ASP
 

This function checks to see if two arrays are equal

  1. function areArraysEqual(byval array1, byval array2)
  2. areTheyEqual = true
  3. if ubound(array1) <> ubound(array2) then
  4. areTheyEqual = false
  5. else
  6. for i = 0 to ubound(array1)
  7. if (array1(i) <> array2(i)) then
  8. areTheyEqual = false
  9. end if
  10. next
  11. end if
  12. areArraysEqual = areTheyEqual
  13. end function

Report this snippet  

You need to login to post a comment.