The information in this article applies to:
SYMPTOMSSetting a currency, long, integer, or double to its minimum documented value is not valid. If you hard code the value, then the error message: "INVALID Number" from Visual Basic 3, and "Expected: expression" from Visual Basic 4 displays. However, if you try set a variable of any of these types at run-time, an Overflow Error displays. CAUSEThe reason for this behavior is that Microsoft Visual Basic reads all negative numbers first as their absolute value, and then applies a unary negative. Because Microsoft Visual Basic puts the absolute value into a placeholder of the type identified by the type suffix, it reports the error when the positive limit is exceeded. RESOLUTIONNegative values that are greater in absolute value than the maximum positive value are invalid. STATUSThis behavior is by design. MORE INFORMATION
INTEGER: -32768% Additional query words: kbDSupport kbdss kbVBp400 kbVBp300 kbNoKeyword
Keywords : kbGrpVB PrgOther |
Last Reviewed: February 2, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |