Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Iif(lExp, .t., .f.)?
Message
De
21/01/2010 12:59:19
 
 
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:
01445246
Vues:
83
I thought it was
IIF(lExp <> .T. <> .F.,.T.=.F.,.T.=.T. AND .F.=.F.)
>No, intended code was
IIF(lExp <> .T. <> .F.,.F.,.T.)
>
>>As others have pointed out the syntax is stupid. They obviously meant:
IIF (lExp <> .t.,.f.,.t.)
>>
>>>Is there any reason to use
>>>
iif(lExp, .t., .f.)
>>>instead of lExp itself? The values this iif() returns are identical to the value of lExp.
>>>
>>>I wonder who invented this redundant way of writing it. I've seen it a hundred times, and still don't get it, why would anyone write it that way. Just like
>>>
if lExpr = .t.
>>>is identical to
>>>
if lExpr
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform