Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IIF nested
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00934989
Message ID:
00934998
Vues:
23
>>Am i doing something wrong with this:
>>
>>
IIF(EMPTY(Llamadas.fcita),(IIF(EMPTY(Llamadas.fatencion),(DATETIME()-Llamadas.fllamada)/3600,0)),(DATETIME()-Llamadas.fcita)/3600,0)
>>
>>Thanks for the help
>
>
>I think this is what you want:
>
>
>IIF(EMPTY(Llamadas.fcita),(IIF(EMPTY(Llamadas.fatencion),(DATETIME()-Llamadas.fllamada)/3600,0),(DATETIME()-Llamadas.fcita)/3600),0)
>
>
>You are not passing 2 parameters to the 2nd IIF()

Oops, Sylvain is right, I missed the extra ",0"
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform