Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IIF() code - function argument value, type or count inva
Message
 
À
31/08/2005 10:52:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Divers
Thread ID:
01045499
Message ID:
01045507
Vues:
25
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)
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform