Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Empty() vs 2 quotes
Message
De
04/11/2011 11:28:03
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
02/11/2011 10:53:25
Jarid Griesel
The Innovix Technology Group (Pty) Ltd
Johannesburg, Afrique du Sud
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01526798
Message ID:
01528073
Vues:
89
>I have found statements like:
>
> ? myVariable = ""
>
>to consistently produce unreliable results
>.
>
>I now use with confidence.
>
> ? ISBLANK(myVariable) = .T. / EMPTY(myVariable) = .T.

EXCEPT when you LOCATE FOR EMPTY(myField). Then you will get zero Rushmore optimzation. If you want to determine if a character field is "empty" do LOCATE FOR myfield=SPACE(LEN(myField))
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform