Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ALLTRIM in indexes
Message
 
To
27/09/1998 09:00:31
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00138923
Message ID:
00141252
Views:
36
>We may put this as a rule. I've found a workaround to achieve the listing by AllTrim(first)+' '+AllTrim(second):
>
>index on first - (' '+second) tag whatever

I think this tag would give incorrect results if either the first or last name contained spaces. For example:

Van, Jim
Van Deusen, Jim

would sort as

VAN DEUSEN JIM
VAN JIM

However, perhaps using a different delimiter than a space would work. I wouldn't bother, if the value is going to get padded out to the full lengths of the constituent fields anyway.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform