Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I put multiple commands on a single line?
Message
 
À
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:
00265482
Vues:
30
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.com

Never mistake having a career with having a life.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform