PRB: Numeric Overflow (Data Was Lost)

ID: Q115618

2.5x 2.6x 3.00 | 2.00 2.5x 2.6x | 2.5x 2.60a

WINDOWS        | MS-DOS         | MACINTOSH
  kbprb

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:   kbprb
KBSubcategory: FxprgBrowse
Keywords          : kberrmsg FxprgBrowse 
Version           : 2.5x 2.6x 3.00 | 2.00 2.5x 2.6x
Platform          : MACINTOSH MS-DOS WINDOWS


Last Reviewed: May 22, 1998
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.