Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is the best index expression?
Message
 
 
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:
01005966
Views:
22
I need a SCAN, not a single LOCATE.

>I agree with Sylvain. The Scan for is optimizable, although just for Borislav's delight, I'd just change the final code as:
>
>
>*-- Have an index on these two fields:
>INDEX ON EMPTY (InsCommand) TAG E_InsCmd
>INDEX ON SearchTB TAG SearchTB
>SET ORDER TO
>
>LOCATE ;
> FOR SearchTB = m.lcSearch AND NOT EMPTY (InsCommand) ;
> WHILE !plError
>
>
>If I understood correctly the use of plError. It looks like a parameter, but if this is the case, I can't imagine what does it have to do with the condition...
>
>Cheers,
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform