Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quick way to compare two arrays
Message
From
06/05/2001 22:09:25
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00503959
Message ID:
00504056
Views:
20
Hi Nadya:

What about just spinning thru 2 arrays?

=afields(aoriginal,"OrgTable")
=afields(anew,"NewTable")

IF alen(aoriginal)<>alen(anew)
** we already know they don't match - perhaps do something here
ENDIF

FOR i=1 to alen(aoriginal)
IF aoriginal[i]=anew[i]
loop
ELSE
*do whatever you need to do when the array's aren't identical
ENDIF
ENDFOR
Previous
Reply
Map
View

Click here to load this message in the networking platform