Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DO CASE vs IF
Message
 
To
28/12/2000 09:21:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00457199
Message ID:
00457318
Views:
23
I went to the session "Performance Tuning Visual FoxPro" by Andy Kramek at GLGDW. Andy ran some test code, the results:

"Visual FoxPro provides us with a three constructs for branching program execution – the standard IF…ELSE…ENDIF, the DO CASE and the IIF() . What is the benefit (in terms of performance) of one over the other? The most obvious statement to use, the DO CASE, is in every situation significantly slower, while the most unreadable and hardest to construct (the IIF()) was always the quickest to execute."
Dennis Lindeman
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform