|
-
May 13th, 2011, 12:46 PM
#7
Thread Starter
New Member
Re: I need a runtime error when dividing by zero
Demon-Mask: I see you typing that next to me
(We're in class together)
I'll try that though
I figure that as long as I'm mentioning old ideas that I've had I'll throw this one out there:
Previously I had set the variables to only be declared if the text box they corresponded to had a value, or when a value was being assigned to that variable through calculations. This meant that in theory all variables either had a value from the text box, or didn't exist, so On Error Resume Next (I feel like I'm a little obsessed with using this statement...sorry) would skip over all of the bad calculations. The PROBLEM was that Vb.net was seeing that the declarations were within if statements, and On Error Resume Next wasn't running live, it ran prior to the click event, so any calculations using a variable that wasn't declared outside of an if statement were skipped entirely.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|