Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I know If a Object exist?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00159912
Message ID:
00160284
Views:
23
You are only impacted when the total expression evaluates to false. In VB, the whole expression gets evaluated - but still in the end - will evaluate to False. VFP is smart enough to stop evaluation - because it knows that if one part of the expression evaluates to false - and an AND is involved - the whole expression will be false is well. This is called short-circuit logic.

So, while VB will take up more execution cycles - the same end-result is achieved.

So, you *can* still use IIF(). And, with VB, I probably would as the performance hit would be negligible in all liklihood..
Previous
Reply
Map
View

Click here to load this message in the networking platform