Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error building key for index
Message
De
24/06/2009 10:46:36
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01407965
Message ID:
01408062
Vues:
42
Tnx
>>Hi
>>
>>Help Please,
>>
>>I have the following index:
>>
>>
ALLTRIM(TTOC(sdatetime)+ALLTRIM(phone)+ALLTRIM(STR(id1))+ALLTRIM(STR(id2)))
>>
>>When I try to populate the table (alias), I get error message:"Error building key for index"
>
>Don't use ALLTRIM for INDEXES and use TTOC(sdatetime,1) instead.
>
>So, your index will be
>
>TTOC(sdateTime,1) + phone + bintoc(id1) + bintoc(id2)
>
>You would need to padr the values to their length when you construct your seek expression.
Thank you
Chaim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform