Results 1 to 2 of 2

Thread: Global On error goto ...

  1. #1
    Guest

    Post

    Hello there , i want to use in my app a error handeler but i wanna do it in a global way , not only for something specific ... is there a way of doing this ?




  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    No, not really, but what I do is to put an ErrorRoutine in each of my procedures, and in that error routine I call a CommonErrorRoutine passing it the name of the calling procedure (unfortunately you have to hard-code the name). Since the Err object is global, CommonErrorRoutine can display messages or do whatever you want with Err.Number, Err.Description, etc.

    ------------------
    Marty
    What did the fish say when it hit the concrete wall?
    > > > > > "Dam!"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width