General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only