Hi,

I have built an app and wish to add simple Erorr handling.

My basic error handling will be

VB Code:
  1. On Error GoTo ErrorHandler
  2. iniclsUser
  3. CreateSiteEvent "test", "TESTING", 1
  4. CreateJobEvent "test", "TESTING", 1
  5.  
  6. ErrorHandler:
  7. LogError err.Number,"mdlGlobal","testSiteCreation",err.Description

is there a way to open each module and add these lines Capturing the Module name that i am in and the sub/function name using code ?

thansk
David