Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TRIM commands ignored when applied to indexes?
Message
From
16/08/1999 13:48:22
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00254070
Message ID:
00254160
Views:
25
OK, in that case you want ALLT on the search expression but not as part of the index expression. You can index on UPPER(lastname) and SEEK ALLT(UPPER(m.lastname)) just fine.


>
>I wanted the alltrim because the search expression is entered by the user. It is possible that the user will enter leading or trailing blanks.
>
>I'm thinking I might try just a LRTIM on the search expression then pad the field to match the key. That should do it. However, I'll still maintain the UPPER().
>
>Charlie
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform