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 15:23:34
 
 
À
10/12/1997 10:18:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00064972
Message ID:
00065102
Vues:
35
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform