Hi,
Is there a way to have VB return the name of the current sub/function? What I'd like to do is something like this:
public sub MyTest()
try
dim test as integer = 0
test = "oops, it's a string"
catch ex as exception
console.writeline ex.message & " occurred in " & <?????>
end try
end sub
So the output would be:
Conversion from string "test" to type 'Integer' is not valid occurred in MyTest


Reply With Quote
