Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT Statement
Message
 
 
To
31/05/2001 12:02:43
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00513062
Message ID:
00513238
Views:
12
This message has been marked as a message which has helped to the initial question of the thread.
>i think i gave you points for helping....

Thanks, I didn't notice them before... BTW, AFAIK like is not optimizable (I have to check it again), while = is optimizable operator. If you have index on lastname, use pat_lName=m.lcValue. Don't use alltrim in the SQL unless you don't want to change ANSI settings. You can do:
local lcValue, lcOldAnsi
lcOldAnsi=set('ansi')
set ansi off && to perfomr partial match
lcValue=alltrim(thisform....)
select ... where pat_lName=m.lcValue ...
if lcOldAnsi='ON'
   set ansi on && restore it back
endif
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