get current module name

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Brahm

    #1

    get current module name

    hey,

    another question guys..

    is there any way to get module name ?

    E.g: bas_serial_comm .vb

    Daniel


  • Mythran

    #2
    Re: get current module name


    "Brahm" <daniel.brahm@c ontronic.com.br > wrote in message
    news:u236aOQgGH A.4708@TK2MSFTN GP04.phx.gbl...[color=blue]
    > hey,
    >
    > another question guys..
    >
    > is there any way to get module name ?
    >
    > E.g: bas_serial_comm .vb
    >
    > Daniel
    >
    >[/color]

    System.Reflecti on.MethodBase.G etCurrentMethod ().DeclaringTyp e.Name

    HTH,
    Mythran

    Comment

    • Brahm

      #3
      Re: get current module name

      Thanks!

      "Mythran" <kip_potter@hot mail.comREMOVET RAIL> escreveu na mensagem
      news:ezK0CxRgGH A.4940@TK2MSFTN GP05.phx.gbl...

      "Brahm" <daniel.brahm@c ontronic.com.br > wrote in message
      news:u236aOQgGH A.4708@TK2MSFTN GP04.phx.gbl...[color=blue]
      > hey,
      >
      > another question guys..
      >
      > is there any way to get module name ?
      >
      > E.g: bas_serial_comm .vb
      >
      > Daniel
      >
      >[/color]

      System.Reflecti on.MethodBase.G etCurrentMethod ().DeclaringTyp e.Name

      HTH,
      Mythran


      Comment

      • Mythran

        #4
        Re: get current module name


        "Brahm" <daniel.brahm@c ontronic.com.br > wrote in message
        news:%23ufb3bxg GHA.4404@TK2MSF TNGP05.phx.gbl. ..[color=blue]
        > Thanks!
        >
        > "Mythran" <kip_potter@hot mail.comREMOVET RAIL> escreveu na mensagem
        > news:ezK0CxRgGH A.4940@TK2MSFTN GP05.phx.gbl...
        >
        > "Brahm" <daniel.brahm@c ontronic.com.br > wrote in message
        > news:u236aOQgGH A.4708@TK2MSFTN GP04.phx.gbl...[color=green]
        >> hey,
        >>
        >> another question guys..
        >>
        >> is there any way to get module name ?
        >>
        >> E.g: bas_serial_comm .vb
        >>
        >> Daniel
        >>
        >>[/color]
        >
        > System.Reflecti on.MethodBase.G etCurrentMethod ().DeclaringTyp e.Name
        >
        > HTH,
        > Mythran
        >
        >[/color]

        Just so ya know, bas_serial_comm .vb is the name of the file, not module.
        The module may have a different name, and modules definately have no
        extensions (.vb).

        Mythran

        Comment

        Working...