Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error building Key for index in VFP9 with str()
Message
From
16/05/2005 17:23:50
 
 
To
13/05/2005 17:21:23
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01014091
Message ID:
01014689
Views:
23
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform