Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SEEK and LOCATE and UPPER and ALLTRIM
Message
 
 
To
13/01/2009 21:28:13
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01373413
Message ID:
01373421
Views:
26
>>LOCATE FOR ALLTRIM(UPPER(TableName)) = ALLTRIM(UPPER(lcTableName))
>>
>>Either this or
>>
>>LOCATE FOR UPPER(TableName) = PADR(ALLTRIM(UPPER(lcTableName)),LEN(TableName))
>
>Is one better than the other? The first seems simpler.

I would think the second may be a bit better, especially if there is a chance of adding index on UPPER(TableName) in a future. But if the table is small, it would not matter.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform