Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SEEK and LOCATE and UPPER and ALLTRIM
Message
 
 
À
13/01/2009 21:28:13
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01373413
Message ID:
01373421
Vues:
33
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform