Results 1 to 2 of 2
  1. #1

    New Robot Bug? On Error Go To...

    User MArk B. (mkbutler@russellmellon.com) posted:

    Did anyone else know about this behavior?

    In one sub I've got "On Error GoTo EH". That sub has the label "EH:" in it.
    From that sub, I called a function. In that function I didn't have any error
    handling code. So, when an error happened in that function guess what
    happened? It went to EH: in the sub!

    Is this right? I wouldn't thing so. I'd expect it to show the error from
    within the function.

    version: 2000.02.10

    MArk B.

  2. #2

    Re: New Robot Bug? On Error Go To...

    User Tim Gerrells (tim@intellocity.com) posted:

    Typical VB-like error handling: check current function/sub and, if a) no
    handling or b) can't handle it then goto next higher error
    object/sub/function, on up until it is a) handled or b) GPFs or c) [fill in
    the blank].

    Do take care with error handlers in recursive functions.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 07:32 PM.

Copyright BetaSoft Inc.