Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object.Enable
Message
 
 
À
19/07/2000 18:01:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00394572
Message ID:
00394625
Vues:
10
>And for the lazy people who realize that if checks a logical condition:
>
>thisform.cmdButton1.Enabled = {condition where button should be enabled}

I like that syntax too. In a highly populated form, though, there may be a lot of controls to enable or disable in the refresh method. If the same condition applies to most or all of the controls whose state we want to change, then the if... else... syntax has the advantage of evaluating the condition only once overall vs. evaluating it once for each control. Would you notice the difference in performance? Probably not, but it's still something to consider when deciding how to write the code.
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform