Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Whatelse can be simpler then IIF(.T., .F., .F.)
Message
From
18/12/2011 07:24:10
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
18/12/2011 04:46:19
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01531285
Message ID:
01531290
Views:
126
This message has been marked as the solution to the initial question of the thread.
>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."
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform