The information in this article applies to:
SYMPTOMSIndexing a cursor file with a key field that contains more than 240 characters generates this error: This procedure did not generate an error in FoxPro version 2.6. CAUSEThis is a deliberate change in behavior. The maximum length for an index key in a compact index is 240 bytes. If a key is longer than 240, FoxPro 2.6 truncates it. Visual FoxPro 3.0, 5.0 and 6.0 display the "Invalid Key Length" error message to protect against the possiblity of generating duplicates. STATUSThis behavior is by design. MORE INFORMATIONThis error message also occurs with a table. Steps to Reproduce BehaviorType the following commands in the Command window:
The "Invalid Key Length" error message is displayed.
REFERENCESFor more information on Visual FoxPro 3.0 system capacities, search for "System capacities" in the FoxPro Help file. Additional query words: VFoxWin
Keywords : kbVFp300 kbVFp500 kbVFp600 FxprgGeneral |
Last Reviewed: December 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |