Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code Efficiency Question
Message
De
14/03/2001 19:40:31
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Code Efficiency Question
Divers
Thread ID:
00485113
Message ID:
00485113
Vues:
43
Anyone have a considered response to the following?

Given that in FoxPro an immediate IF, IIF(), is more efficient than an equivalent IF...ELSE, I had a question.

Would this strategy, in fact, actually be more efficient in conditionally calling a form method. For example, would

=iif( SomeCondition, SomeObject.Refresh(), .F. )

have some efficiency advantage (however trivial) over

if ( SomeCondition )
SomeObject.Refresh
endif

I fully appreciate that likely of greater concern are issues of code readability, maintainability, etc. than negligible speed improvements.
My question is really just for a point of knowledge. Thanks.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform