Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the best index expression?
Message
From
19/04/2005 12:40:57
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01005870
Message ID:
01006258
Views:
24
Hi Nadya,

>Also I was a little bit afraid to implement Fabio's idea of using IIF() for select correct alias, so I left more lines of code.
if you are talking about
SELECT (IIF(cL_USE_AGAIN,m.lnSelRIDefi,"RIDefinitions"))
Here I'ld go a different way. Since the code opening/selecting RIDefinitions is only executed once per trigger, I'ld set m.lnSelRIDefi in this branch as well and during the rest of the code always select (m.lnSelRIDefi). Cleans the code up and is probably faster in most scenarios, especially if selection is needed often in the lower parts of the code.

regards

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform