PRB: Numeric Overflow (Data Was Lost)

Last reviewed: April 30, 1996
Article ID: Q115618
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, version 3.0
  • Microsoft FoxPro for Windows, versions 2.5x, 2.6x
  • Microsoft FoxPro for MS-DOS, versions 2.0, 2.5x, 2.6x
  • Microsoft FoxPro for Macintosh, versions 2.5x, 2.5c

SYMPTOMS

When you are replacing data in a numeric field with data that is greater than the field's width in the database, a "Numeric Overflow (data was lost)" error message appears. However, the data is still placed in the table, but it is in scientific notation format. In some cases, the data is replaced with the symbol "****".

MORE INFORMATION

Steps to Reproduce Problem

  1. In the Command window, type:

          CREATE test
    

  2. For the name of the field to create, type "Test" (without the quotation marks), and then select the numeric field type and a width of 5.

  3. Choose OK.

  4. In the Command window, type the following commands:

           x=123456
           APPEND BLANK
           REPLACE Test WITH x
    

    The error "Numeric Overflow (data was lost)" is returned.

  5. In the Command window, type "BROWSE" (without the quotation marks).

Note that the number appears in the database in scientific notation.


Additional reference words: VFoxWin 3.00 FoxMac FoxDos FoxWin 2.00 2.50
2.50a 2.50b 2.50c 2.60 2.60a num
KBCategory: kbprg kberrmsg kbprb
KBSubcategory: FxprgBrowse


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: April 30, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.