Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid Key Length
Message
From
06/09/2007 01:39:33
 
 
To
06/09/2007 01:28:14
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01252658
Message ID:
01252659
Views:
19
>Dear Experts
>
>index on mill+bank+branch to account22
>
>the above line work fine but the following line
>
>index on mill+bank+branch+account to account22
>
>display this error message
>Invalid Key Length
>
>How to get rid of this message?


Check the help for this error:

If you created an index key that exceeds the following limits, create a shorter index key.

The length of an index key for an index or compiled index (.idx) must be between 1 and 100 characters. The length for a compound index (.cdx) must between 1 and 240 characters.

For certain collating sequences, or when using double-byte character sets (DBCS) characters, each character in the eExpression parameter in the INDEX command uses two characters in the index key. In these cases, the length of eExpression is limited to 120 characters.

If you created an index key with length of 0, make sure the first record of the fields you base the index on contains some data.

When Visual FoxPro creates an index, it evaluates fields in the first record in the table.

In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform