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:
00935099
Vues:
22
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform