Hello,
I'm wondering if there is any way to know where did the error come from. I have this:
vb.net Code:
Try Select Case MathOperation Case Divide 'Divide a/b Case Multiply 'Multiply a*b Case Tangent 'Calculate tangent End Select Catch ex As Exception Return "Error" End Try
When I say "where did the error come from, is which case threw the error.I know I could check the values and throw an exception, but I want to know which case produced the exception.
I hope it's clear.
Thanks in advance!
PS: That's just an example.




.
Reply With Quote