Function/Sub Name 
Author Message
 Function/Sub Name

Is there any properties that states the currently called function/subroutine
name ?

e.g.

Sub abc()
    debug.print Me.Name
End Sub

I know there is no Me in a Standard Module. Is there any way ? Please help.

Thanx in advance.



Fri, 01 Sep 2000 03:00:00 GMT  
 Function/Sub Name

Hi,

Not that I'm aware of.  You'll need to define a string that carries the sub
name and change it from each sub.

HTH
--
Just my $.001
Please limit questions to newsgroups only!
Dev Ashish
---------------
The Access Web ( http://home.att.net/~dashish )
---------------


:Is there any properties that states the currently called
function/subroutine
:name ?
:
:e.g.
:
:Sub abc()
:    debug.print Me.Name
:End Sub
:
:I know there is no Me in a Standard Module. Is there any way ? Please help.
:
:Thanx in advance.
:
:



Fri, 01 Sep 2000 03:00:00 GMT  
 Function/Sub Name

Quote:
>Is there any properties that states the currently called function/subroutine
>name ?

Unfortunately not, though this would be a wonderful feature.

-- Jim Ferguson, FMS
   http://www.fmsinc.com



Fri, 01 Sep 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. get the function/sub name where the excepction CATCH ( not where throw)

2. Q: printing procedure/function/sub name

3. How to get the current function/sub Name

4. VB keyword as function/sub name?

5. Returning sub or function name within a specific sub or function

6. Automatic capitalization of variable names, type names, subs and functions

7. Retrieve name of current sub/function and name of current module

8. Calling a sub or function using a variable through another sub or function

9. Local function/sub inside function/sub

10. Obtaining Current Sub/Function Name

11. How to get function/sub procedure name

12. (Q) Getting current Sub/Function name (or Object Browser functionality)

 

 
Powered by phpBB® Forum Software