Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Iif(lExp, .t., .f.)?
Message
De
22/01/2010 10:03:00
 
 
À
22/01/2010 06:37:15
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:
01445459
Vues:
47
>>>>
if lExpr = .t.
>>>>is identical to
>>>>
if lExpr
>>>
>>>In certain cases I use the above notation. In what cases? In cases where I want the reader to read natural English "IF THIS IS TRUE" or "IF THIS IS FALSE" rather than computer logic language.
>>
>>The second one is "IF THIS IS TRUE". The first one reads ""IF THIS TRUE is TRUE". Nothing natural about that.
>
>Example:
IF THIS.VALUE = .F.
reads as IF THIS VALUE IS FALSE.

if you apply first form, then:
 IF (THIS.VALUE = .F) = .T.
If you simplify this, then you must simplify the first:
 IF THIS.VALUE = .T.

become

 IF THIS.VALUE 
and we return to minimal form.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform