Are Arrays Equal


/ Published in: ASP
Save to your folder(s)

This function checks to see if two arrays are equal


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.