Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Numeric Overflow
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01404681
Message ID:
01404685
Views:
66
>Hi Gang...
>
>A colleague here asked me why he was getting a Numeric Overflow on a field of a table. The field was 9,0 9 wide with no decimals.
>
>It was displayed as ****** in the field.
>
>Don't know what the value was going on.
>
>The code that put the value there was...
>
>myvalue = val(right(mystring,6))
>
>replace myfield with myvalue
>
>I tried different combinations for mystring, but could not overflow it...... any ideas what made it overflow on that certain value? Or what the value might be?
>
>Thanks!

Something like 9E18, may be?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform