Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SEEK and LOCATE and UPPER and ALLTRIM
Message
De
14/01/2009 07:44:21
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
14/01/2009 03:16:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01373413
Message ID:
01373478
Vues:
23
>>There is an index on TableFormProperties.TableName, but the date is in mixed case, so I can't do a SEEK (or can I?). I'm doing this in a LOCATE, but that seems a bit wrong somehow. Is this the right way to do it, or is there a better way.
>>
>>lcTableName = "MyTableName"
>>SELECT TableFormProperties
>>LOCATE FOR ALLTRIM(UPPER(TableName) = ALLTRIM(UPPER(lcTableName))
>>
>
>If you index on UPPER(TableName) what's stopping you using a Seek()?

Of course, but sometimes we are not always in control of everything. The index on this data is not UPPER and will not be.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform