What Function/Sub am I in. 
Author Message
 What Function/Sub am I in.

Is there a way using VBScript to determine what the name of the function is
that is executing?  It would be useful for customized error handling.

Something like:

function f1()
    strFunctionName = me.name
end fucntion

JavaScript has the following:

- caller property
- arguments.callee

Does VBScript have an equivalent?


Tue, 25 Mar 2003 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

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

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

3. Local function/sub inside function/sub

4. execute a variable as a function/sub procedure (like eval function in java(script))

5. menus and sub-menus and sub-sub-menus

6. Am I burying myself too deep in SUBs?

7. How to know the sub name I am into

8. count elements in root, sub root sub-sub root treeview

9. What Function am I in?

10. Am I missing something here ...? Instr Function

11. Time function, displaying AM PM

12. Optional parameters for function and sub


Powered by phpBB® Forum Software