Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IIF nested
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00934989
Message ID:
00934998
Views:
25
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform