Hey John,
Well right off the top of my head lAfterDark should be lAfterAM ;-D
>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,
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada
cmagee@metroland.comNever mistake having a career with having a life.