Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read / Access the function call list

Status
Not open for further replies.

kelele

Programmer
May 22, 2001
12
US
I am building a global Error_handler() function. The function is called in any procedure where an error occurs. How can I tell which module/ procedure called the Error_handler() function from within the Error_handler() by reading the function call list. I am trying to avoid having to pass parameters such as the module/procedure to the Error_handler().

Thanks

Kelele
 
Hi, Kelele!

I created function with parameter for error messages title in my applications like following:

call Error_handler(...., _
me.name & " ProcedureNameWhatCalledError)


Public Function Error_handler(..., Optional strErrMsgTitle as String="Error...")
.......
msgbox "Error message text", vbExclamation, strErrMsgTitle
.......
end function


Aivars
 
Kelele, are you from kenya by any chance? Shoot me an email if so. jlitondo@gatecitysteel.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top