Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code Efficiency Question
Message
From
14/03/2001 19:40:31
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Code Efficiency Question
Miscellaneous
Thread ID:
00485113
Message ID:
00485113
Views:
42
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.
Next
Reply
Map
View

Click here to load this message in the networking platform