Paragraph Name

Discussion in 'ASP .Net' started by Jim Heavey, Dec 3, 2003.

  1. Jim Heavey

    Jim Heavey Guest

    Hello, I was wondering if there is some way I can obtain the name of the
    subroutine that a line of code is executing in via the code.

    Sy for example you wanted to write a message like the following:

    Trace.Write("ProcessStart", "Starting in Subroutine 'MySubroutine'"

    Is there a way for me to programmatically get the name of the subroutine in
    which this line of code is executing such that I do not have to hard code
    the information everytime?

    Thanks in advance for your assistance!!!!!!
    Jim Heavey, Dec 3, 2003
    #1
    1. Advertising

  2. Have you tried using the GetMethod method in
    System.Diagnostics.StackFrame?

    Bruce Johnson
    http://www.ObjectSharp.com/Bruce

    >-----Original Message-----
    >Hello, I was wondering if there is some way I can obtain

    the name of the
    >subroutine that a line of code is executing in via the

    code.
    >
    >Sy for example you wanted to write a message like the

    following:
    >
    >Trace.Write("ProcessStart", "Starting in

    Subroutine 'MySubroutine'"
    >
    >Is there a way for me to programmatically get the name

    of the subroutine in
    >which this line of code is executing such that I do not

    have to hard code
    >the information everytime?
    >
    >Thanks in advance for your assistance!!!!!!
    >.
    >
    Bruce Johnson, Dec 4, 2003
    #2
    1. Advertising

  3. Jim Heavey

    Jim Heavey Guest

    thanks
    Jim Heavey, Dec 4, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Anno Siegel

    Re: read a paragraph via scrit?

    Anno Siegel, Apr 1, 2004, in forum: Perl
    Replies:
    0
    Views:
    449
    Anno Siegel
    Apr 1, 2004
  2. MW de Jager

    HTML Paragraph question

    MW de Jager, Jul 6, 2005, in forum: ASP .Net
    Replies:
    9
    Views:
    464
    John Timney \(ASP.NET MVP\)
    Jul 6, 2005
  3. ad
    Replies:
    4
    Views:
    405
    UT-BadBoy
    Feb 23, 2006
  4. Francois LE DORNER

    swing - styled document - paragraph attribute

    Francois LE DORNER, Mar 8, 2005, in forum: Java
    Replies:
    0
    Views:
    408
    Francois LE DORNER
    Mar 8, 2005
  5. dorayme
    Replies:
    112
    Views:
    2,716
    dorayme
    Mar 30, 2009
Loading...

Share This Page