Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's quicker???
Message
De
09/10/2002 15:12:50
 
 
À
09/10/2002 09:53:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00709237
Message ID:
00709468
Vues:
14
The IF form would be fastest I think.
INLIST() suffers from the limitation on the number of parameters you can pass to a VFP function, so it's not infinitely exendable.

Watch out for SET EXACT, it affects how a = "a" is evaluated.
If you really, definitely, want to know if a = "a" then use a == "a", otherwise you can get caught out.

Try this in the command window
? SET("EXACT") && so you can set it back afterwards :)
SET EXACT OFF
a="ab"
? a="a"
? "a"=a
? inlist(a,"a")
? a=="a"
SET EXACT ON
a=""
? a="a"
? "a"=a
? inlist(a,"a")
? a=="a"

Which will sometimes get you in a heap of trouble.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform