BUG: Index Key w/ More Than 240 Characters Loses Information

Last reviewed: June 27, 1995
Article ID: Q123718
The information in this article applies to:
  • Microsoft FoxPro for Windows, version 2.6a

SYMPTOMS

An Index that contains more than 240 characters appears to lose information after the 240th character.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Problem

  1. Enter MODIFY COMMAND TEST in the Command window.

  2. Enter the following code in TEST.PRG:

    i=240 SET SAFETY OFF CREATE TABLE NEW (name c(250)) INDEX ON name TAG name APPEND BLANK REPLACE name WITH space(i)+"B" APPEND BLANK REPLACE name WITH space(i)+"C" APPEND BLANK REPLACE name WITH space(i)+"A" LIST FIELDS ALLTRIM(name)

  3. Issue this command: DO TEST.PRG

At this point, if I=240, adding one character to the length should give an invalid key length. However, instead of getting an error, the key length appears to be only 240 characters long with the rest lost.


Additional reference words: FoxWin 2.60a buglist2.60a
KBCategory: kbprg kbbuglist
KBSubcategory: FxotherGeneral


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.