Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I put multiple commands on a single line?
Message
From
15/09/1999 14:32:42
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00264921
Message ID:
00265126
Views:
17
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform