Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the best way to compare two ARRAYS?
Message
De
10/12/1997 10:18:33
 
 
À
10/12/1997 10:11:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00064972
Message ID:
00064975
Vues:
33
>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
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform