Returning the name of a module/class module 
Author Message
 Returning the name of a module/class module

Does anyone know if it is possible to return the name of the currently
running module or class module.  In forms you can use Me.Name, and obviously
if you add a Name property to your Class Module you can do the same thing,
but is it possible without any hard-coding by the programmer?

Also is it possible to return the name of the currently running
Sub/Function?

Thanks,

--
=======================
Caleb Joliffe
(Datsun 180B SSS (DE))


=======================



Mon, 16 Sep 2002 03:00:00 GMT  
 Returning the name of a module/class module
The name of a class is returned by TypeName(Me)
There is no way to get the name of a BAS module or a procedure without
hardcoding it as a constant.

--
RobSmith


: Does anyone know if it is possible to return the name of the currently
: running module or class module.  In forms you can use Me.Name, and
obviously
: if you add a Name property to your Class Module you can do the same thing,
: but is it possible without any hard-coding by the programmer?
:
: Also is it possible to return the name of the currently running
: Sub/Function?
:
: Thanks,
:
: --
: =======================
: Caleb Joliffe
: (Datsun 180B SSS (DE))
:

: =======================
:
:



Mon, 16 Sep 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Class modules 97 - Refering to array within a custom class module

2. Accessing procedures of a class module from another class module

3. Circular Reference Between Modules when 2 Class Modules Listen to Each others Events

4. Class Module and Module

5. Class Modules & Modules

6. VB Modules/Class Modules

7. class module vs. module

8. modules and class modules

9. Modules or Class modules?

10. Q(VB5) : Different between module & class module

11. Q: Code Module vs UserControl (Form, Class) module.

12. Class Module & Module

 

 
Powered by phpBB® Forum Software