Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Iif(lExp, .t., .f.)?
Message
 
À
21/01/2010 17:36:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01445223
Message ID:
01445372
Vues:
74
>better it is
>
>NVL(lExp,.F.)
>
>* example
>thisform.Visible = NVL(lExp,.F.)
>
Your example is only better if you don't care to handle NULL as different from .F. and if that is the case why allow NULL at all in the first place.ULL and .F. are NOT the same value and they should be recognized by the code as two distinctly different values which result in two distinctly different reactions. .T. is true, .F. is false, and NULL is "I don't know whether this is true or false" you can see this way that they are three distinctly different values.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform