FIX: INSERT BEFORE Overwrites Data

Last reviewed: September 22, 1997
Article ID: Q124163
2.60 WINDOWS kbprg kbfixlist kbbuglist

The information in this article applies to:

  • Microsoft FoxPro for Windows, version 2.6

SYMPTOMS

Executing the INSERT BEFORE command overwrites data in the current record when CODEPAGE=AUTO and a table (.DBF file) is marked with any codepage other than 1252 (Windows ANSI) or 0 (no code page is set).

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in FoxPro version 2.6a for Windows.

MORE INFORMATION

Steps to Reproduce Problem

  1. Set CODEPAGE=AUTO in your CONFIG.FPW file.

  2. Load FoxPro for Windows, and execute this code:

    SET EXCLUSIVE ON USE \FPW26\TUTORIAL\CUSTOMER

  3. Select any codepage other than 1252 when the dialog that allows you to set the codepage for the table appears.

  4. Issue the INSERT BEFORE command.

  5. Enter new data into one of the fields in the edit window that appears. Save the changes when the data from the current record appears.

  6. Issue the BROWSE command. The record that was current when you issued the INSERT BEFORE command has been overwritten with the new data.

  7. Go to the last record in the table to see that it is now blank.


Additional reference words: FoxWin 2.60 buglist2.60 fixlist2.60a
KBCategory: kbprg kbfixlist kbbuglist
KBSubcategory: FxprgGeneral
Solution Type : kbfix


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: September 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.