Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if numeric field have Numeric overflow
Message
From
02/09/1999 04:38:12
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00260498
Message ID:
00260500
Views:
18
>For some reason some num. fields in my table have numeric overflow,
>I don't know how to prevent the message 'Numeric overflow. Data was lost (Error 39)' when using this field
>
>Thanks in advance
>Zoran Milivojevic
>zoran@dunavel.com
If any field's new value is greater than it could hold you woul dget Numeric overflow. ie: Say you have a field defined as N 3.4 and a calculation tries to set it to 1000 would cause it. Integer field would hold up to 0xFFFFFFFF and 0x100000000 would cause overflow. If your field is type numeric than increase its size to a value that it could hold your maximum possible data. If it's integer, change to double, float or numeric.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform