Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code Efficiency Question
Message
From
14/03/2001 23:20:59
 
 
To
14/03/2001 19:40:31
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00485113
Message ID:
00485173
Views:
12
Hi Spencer,

AFAIK, calling a method from the middle of an IIF() won't work to begin with. IIF() is designed to return expressions, not execute methods.


>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.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform