Results 1 to 3 of 3

Thread: I have forgotten!

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602

    I have forgotten!

    I remember reading in a vb.net book about how to get the name of the method currently executing. I want to use this for an error handling method... I have searched the reflection namespace but couldn't find anything useful.

    When I programmed C++ I always used this when handling errors... but how to do it in vb instead of writng a static name on each catch statement?

    kind regards
    Henrik

  2. #2
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    Look in Exception class and its derived classes, I think they have some kind of method that will give you the trace of what functions are or were being used
    \m/\m/

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602
    Got it thanks.. it was a method in the exception namespace that used reflection... got a little confused there


    thanks
    Henrik

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width