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:
00854967
Vues:
42
David,
Thank for your help. I was looking at the VFP 8 help which does not mention "-1" as an option. Now I am all set.

>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).
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform