Function that returns "current function" 
Author Message
 Function that returns "current function"

Is there a VB function (or some way) to return
the name of the current function/procedure
(that is being executed)?

Thanks in advance,
         - Mark Fisher



Sun, 19 Dec 1999 03:00:00 GMT  
 Function that returns "current function"

Quote:
>Is there a VB function (or some way) to return
>the name of the current function/procedure
>(that is being executed)?

Not that I know of, but you could simulate it:

 - declare a global variable called say, FUNC$
 - in each event and general procedure (user-written stuff), hardcode
   the name of the event or function in FUNC$.
 - Then you can check FUNC$ for the name

HTH,
Greg DiGiorgio

Quote:

>Thanks in advance,
>         - Mark Fisher



Sun, 19 Dec 1999 03:00:00 GMT  
 Function that returns "current function"

I do not think so. But if it is for debugging put a msgbox in each
function which will give you the name of the function you are presently
in.
--
[Henri at]



: Is there a VB function (or some way) to return
: the name of the current function/procedure
: (that is being executed)?
:
: Thanks in advance,
:          - Mark Fisher
:



Mon, 20 Dec 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. chrW function return "?"

2. Seek returns "No Current Record"

3. Enumerating References - "Illegal Function Call"

4. the "right" function

5. "GetElapsedTime" function

6. Function To Create "Time Categories"

7. CopyObject gets "Illegal function call" error

8. Duplicating "manual" functions from within VBA

9. report formula and the "AND" function

10. Datatype mismatch using "UCase" function

11. Function "Nearly" works

12. Need Help with "Average" function

 

 
Powered by phpBB® Forum Software