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:
00935099
Views:
24
>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

Edgar,

I agree with Mike. Unless there's an over-riding condition, such as this is in a report text field or this code is called 10s of millions of times in a method, it's much better to use the classical IF...THEN...ELSE...ENDIF structure if only for the purpose of clarity.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform