Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error building key for index
Message
 
 
À
24/06/2009 07:10:31
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:
01408029
Vues:
67
This message has been marked as the solution to the initial question of the thread.
>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.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform