Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error building Key for index in VFP9 with str()
Message
De
16/05/2005 17:23:50
 
 
À
13/05/2005 17:21:23
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
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01014091
Message ID:
01014689
Vues:
24
There is an issue, that VFP is not using indexes using STR() for rushmore optimization. But nevertheless, they work. Although an index expression should have fixed length an index on Alltrim(field) works too, VFP intelligently pads it to the field length and you have the benefit of striping off leading whitespace.

Maybe DTOC is making problems. Have you SET SYSFORMATS ON? How are your date settings? Your index expression depends on much settings, which can cause errors.

Its much better to define the index with this expression:
SET COLLATE TO "MACHINE"
INDEX ON DTOS(dField)+BINTOC(nField)+cField TAG whatever additve

Bye, Olaf.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform