Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IIF() code - function argument value, type or count inva
Message
 
To
31/08/2005 10:52:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
01045499
Message ID:
01045507
Views:
28
This message has been marked as the solution to the initial question of the thread.
Also, empdrvr.callboard needs to be a text expression -
IIF(type("empdrvr.callboard") = "L", empdrvr.callboard, empdrvr.callboard = 1)
-Dan

>>I am trying to build a controlsource for a checkbox that will work with two different possible sets of tables.
>>
>>IIF([type(empdrvr.callboard) = "L"], empdrvr.callboard, IIF([empdrvr.callboard = 1], .T., .F.))
>
>
>Sure, the brackets are interpreted as quotation marks.
>
>Change this:
>
>
>iif([...
>
>
>to this:
>
>
>iif(...)
>
>
>By the way, the second iif() is superfluous, just return empdrvr.callboard = 1, which is already true or false.
>
>This reduces the entire epxression to:
>
>
>IIF(type(empdrvr.callboard) = "L", empdrvr.callboard, empdrvr.callboard = 1)
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform