Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Whatelse can be simpler then IIF(.T., .F., .F.)
Message
De
18/12/2011 08:45:14
 
 
À
18/12/2011 07:24:10
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01531285
Message ID:
01531294
Vues:
88
>>Hi,
>>
>>I have a form property cExpression (a string expression which will be evaluated in a method), under certain circumstance, I want it to return .F. without checking any condition.
>>Currently, what I do is to input IIF(.T., .F., .F.) to cExpression in the Property window. I can't input it directly as .F. because that will make it a Boolean value, nor can I assign cExpression as '.F.' because it will turn out to be "'.F.'" which won't eval to .F.
>>
>>Is my IIF(.T., .F., .F.) the simplest way? Is there any simpler way?
>
>You might try:
>
>
>= ".F."
>
Thank a lot, that works.

Btw, I am curious, because when I try in Command window
abc = '=".F."'
messagebox(evaluate(abc))
I got a "Missing expression" error, but when I input =".F." in cExpression, it works...Isn't a direct input of =".F." in property window produce a value like my abc above?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform