[thelist] RE: Comparing Arrays in ASP
Rob Smith
rob.smith at THERMON.com
Thu Aug 26 14:31:33 CDT 2004
I think the long way around this is to apply the tracheotomy axiom:
If Array_A.count < Array_B.count then
arrays are different
else if Array_A.count > Array_B.count then
arrays are different
else // arrays are same length, campare each element...
for x = 0 to Array_A.count
if not Array_A(x) = Array_B(x) then
arrays are different
x = Array_A.count
end if
next
end if
Is there a shorter way?
Rob
More information about the thelist
mailing list