Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Empty() vs 2 quotes
Message
De
03/11/2011 09:06:28
 
 
À
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:
01527933
Vues:
73
>I have found statements like:
>
> ? myVariable = ""
>
>to consistently produce unreliable results
>.
>
>I now use with confidence.
>
> ? ISBLANK(myVariable) = .T. / EMPTY(myVariable) = .T.

You don't need the "= .T." part.
ISBLANK(myVariable)
or
EMPTY(myVariable)
can be used without the comparison, like:
IF EMPTY(myVariable)
  * do something
ENDIF
Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform