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
 
Back
Top