get current module name

  • Thread starter Thread starter Brahm
  • Start date Start date
B

Brahm

hey,

another question guys..

is there any way to get module name ?

E.g: bas_serial_comm.vb

Daniel
 
Brahm said:
hey,

another question guys..

is there any way to get module name ?

E.g: bas_serial_comm.vb

Daniel

System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name

HTH,
Mythran
 
Brahm said:
Thanks!

"Mythran" <[email protected]> escreveu na mensagem



System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name

HTH,
Mythran

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top