Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ALLTRIM in indexes
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00138923
Message ID:
00141168
Views:
31
>>Is it advisable to use ALLT(field1) in index expressions and what
>>are its advantages and disadvantages.
>>
>>Thanks in advance.
>>
>>Shashi
>
>I use ALLTRIM() for all my indexes, I have to use them because in some cases what you have on your textboxes it's not the same you have in your fields.
>
>"name " is not equal to "name"

Plinio,

You are wasting cpu cycels because VFP pads the field back out to be a constant length when you use ALLTRIM(). SET EXACT OFF and "Name " = "Name" will be equal.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform