Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Iif(lExp, .t., .f.)?
Message
 
To
21/01/2010 17:36:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01445223
Message ID:
01445372
Views:
73
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform