Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can ALLTRIM on an index field cause problems?
Message
 
To
07/03/2001 10:29:49
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00482253
Message ID:
00483023
Views:
9
In addition I usually find it safest to do it as PADR(TRIM(lastname)+","+firstname,xx) where xx is the longest value I expect to be able to get. Otherwise sometimes you can get truncated keys.

>Hi Dore.
>
>>Wouldn't trimming and concatentation in this way lead to potential errors.
>
>I only use this type of construct under very special circumstances, such as concatenating trim(LASTNAME) + "," + FIRSTNAME or trim(FIRSTNAME) + " " + LASTNAME.
>
>Doug
Cy Welch
Senior Programmer/Analyst
MetSYS Inc
Previous
Reply
Map
View

Click here to load this message in the networking platform