Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How ASCAN in a 2 dimensional array?
Message
De
14/04/1999 16:17:12
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00208369
Message ID:
00208379
Vues:
27
>have a two deminsional array. want to search the second column for a matching name. How do I tell ASCAN i only want to match on the second column, and what does ASCAN return. Tried it in the command window, but did not have much luck.
>
>Thanks Brenda

You can't do it with ASCAN() nicely, because it searches two-dimensional arrays by rows first and then by columns. So, you may better search in loop:
For nLoop=1 to Alen(myarray,1)
IF myarray[nLoop,2]=="myexpression"
Return .T.
ENDIF
Endfor
Return .F.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform