Visual Basic Reference Error Messages |
|
An overflow results when you try to make an assignment that exceeds the limits of the target of the assignment.
To correct this error
- Make sure that results of assignments, calculations, and data type conversions are not too large to be represented within the range of variables allowed for that type of value, and assign the value to a variable of a type that can hold a larger range of values, if necessary.
- Make sure assignments to properties fit the range of the property to which they are made.
- Make sure that numbers used in calculations that are coerced into integers do not have results larger than integers.
See Also
Debugging Basics