Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Quick way to compare two arrays
Message
De
06/05/2001 22:09:25
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00503959
Message ID:
00504056
Vues:
19
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform