Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Searching array for exact
Message
 
 
À
09/07/2002 15:30:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00676791
Message ID:
00676795
Vues:
19
You can pass -1 for parameters you don't need to specify.
? ASCAN(laField,'REVWORD',-1,-1,-1,6)
>VFP 7 introduces a new parameter to search an array for exact match. This parameter is the 4th optional one. When I first tried that, I used:
>
>
>? ASCAN(laField,'REVWORD',,,,6)
>
>
>But, if we use the 4th optional parameter, we have to pass a value to the first 3. Otherwise, an error is returned. So, the following is needed:
>
>
>? ASCAN(laField,'REVWORD',1,1,1,6)
>
>
>I was just wondering if I did it right or if there is a way to do it based on my first example.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform