|
-
Apr 23rd, 2007, 02:23 AM
#1
Thread Starter
Member
[RESOLVED] [2005] Logging error locations
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
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
|