Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IIF() code - function argument value, type or count inva
Message
De
31/08/2005 10:52:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
31/08/2005 10:48:11
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:
01045501
Vues:
23
This message has been marked as a message which has helped to the initial question of the thread.
>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)
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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform