Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the best way to compare two ARRAYS?
Message
From
10/12/1997 15:23:34
 
 
To
10/12/1997 10:18:33
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00064972
Message ID:
00065102
Views:
31
>>I want to compare two arrays to see if one
>>is different. What is the best way?
>
>lErrorflag=.f.
>on error lErrorflag=.t.
>for nLoop=1 to max(alen(array1),alen(array2))
> if array1[nLoop]<>array2[nLoop]
> =messagebox("Non-identical arrays")
> on error
> return
> endif
> if lErrorflag=.t.
> =messagebox("Non-identical arrays")
> on error
> return
> endif
>endfor
>=messagebox("Identical arrays")
>return
Hi Edward and thanks for the code. Sorry I did not get back
to you earlier. I will try your code.. thanks again .. :)))
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Reply
Map
View

Click here to load this message in the networking platform