Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Ascan()
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00854861
Message ID:
00854863
Vues:
46
Dmitry,

From the Help file bold emphasis mine:

In Visual FoxPro 6, the nStartElement and nElementsSearched parameters are optional. The nStartElement must be > 0 while nElementsSearched can be any value. In order to accommodate the nSearchColumn parameter, you will need to bypass these parameters by passing a value of –1.


>The help for Ascan() function says that if you omit the nStartElement and nElementSearched, VFP will search the entire array. Yet the following syntax does not work:
>
>
>nRet = ascan( myarray, "ABC",,,2 )
>
>
>(I want to search the entire array, column 2 for value "ABC". I know I could figure out the first and the last element number but why can't VFP do it if I omit the arguments, as help suggests).
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform