Monday, August 9, 2010

OverflowException Questions

1. What is the name of the Visual Basic function (not discussed in this doc, you may like to go back to Automate Processes if you don’t know) we could use to ensure that only numeric data is assigned to the integer variable (therefore avoiding the program crash if non-numeric data is entered)?
IsNumeric()

2. Why does the OverFlowException occur?
It occurs when the value exceeds the limits of the integer data type.
If Below −2,147,483,648
If Above 2,147,483,647

3. What is the range/capacity of an integer?
−2,147,483,648 to 2,147,483,647

4. How would we implement this method? Modify the code to implement the function.
You check to make sure the Integer is not above 2,147,483,647 and is not below −2,147,483,648.

5. Post a screenshot of your code.

No comments:

Post a Comment