Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I put multiple commands on a single line?
Message
De
15/09/1999 14:32:42
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00264921
Message ID:
00265126
Vues:
18
Hi Colin ---

Hey, what's wrong with:

IIF(lThirsty,IIF(lAfterDark,"Beer","Tea"),"Nothing")

;-D


>>>Steve,
>>>
>>>It would be nice but it is not possible in VFP.
>>
>>No offense, Jim, but I'm not so sure it would be nice to have. I don't even want to try to imagine the nightmare code that could be composed with it...
>
>Agree with you on this one Bruce. Reminds of some of the old FP DOS apps I inherited that had lines of code that had 10, 15, 20 or more IIF()'s buried within each other. One of the first things I did with these was to convert them to DO CASE structures. More lines of code but a hell of a lot easier to read and debug.
>
>Cheers,
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform