Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I create classes in a vcx programatically?
Message
 
À
22/12/2006 15:52:26
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01179343
Message ID:
01180792
Vues:
15
Been using that forever. I wish more people would simplify a simple IF...ENDIF to the more direct approach, as in your example.

And then there's the code like this:
SomeVar = IIF(a = b, .t., .f.)
That one drives me nutty, since it should be
SomeVar = a = b
>Did you ever try the ifless construct?
>
llEven=mod(c,2)=0
>I'm not saying it's possible each time, nor that it's necessarily better than an ifelsendif, only that we shouldn't avoid it. Sometimes it may do nice to replace your five-liner with a one-liner. And it should work the same, for even, "even", odd and "odd" numbers.
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform