Announcement

Collapse
No announcement yet.

Non-numeric ERL's in Next PB for DOS Version?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Non-numeric ERL's in Next PB for DOS Version?

    Heck, why not just ask?

    Any chance we can have an ERL return that will return not just
    numeric line labels but TEXT-type labels too?

    Inquiring mind wants to know!

    Thanks.

    ------------------
    Mike Luther
    [email protected]
    Mike Luther
    [email protected]

  • #2
    Personally, I don't care about line numbers/labels. I use the
    ERADR to go straight to the line that caused the error.


    ------------------
    There are no atheists in a fox hole or the morning of a math test.
    If my flag offends you, I'll help you pack.

    Comment


    • #3
      Mel ..

      I'm curious. Does ERADR survive RESUME? Could I tag it like I'm
      doing the ERR and ERL and carry that to my error reporting file that
      is generated by each application. That in an attempt to get where
      we are going.

      I've never pretended to be the smartest dog in the pound!


      ------------------
      Mike Luther
      [email protected]
      Mike Luther
      [email protected]

      Comment


      • #4
        I'm curious. Does ERADR survive RESUME?

        Don't know, but I'll bet....

        Code:
         ON ERROR GOTO ErrorTrap
         ...
        ErrorTrap:
         My_Err   = ERR
         MY_ERADR = ERADR
         CALL AppendErrorInfoToFile (My_Err, My_Eradr, ErrFile$)
         RESUME whatever
        .. would.

        MCM
        Michael Mattias
        Tal Systems Inc. (retired)
        Racine WI USA
        [email protected]
        http://www.talsystems.com

        Comment


        • #5
          Originally posted by Michael Mattias:
          Code:
           ON ERROR GOTO ErrorTrap
           ...
          ErrorTrap:
           My_Err   = ERR
           MY_ERADR = ERADR
           CALL AppendErrorInfoToFile (My_Err, My_Eradr, ErrFile$)
           RESUME whatever
          Good way of going. To expand on this:

          Code:
           ON ERROR GOTO ErrorTrap
           ...
          ErrorTrap:
           My_Err   = ERR
           MY_ERADR = ERADR
           CALL AppendErrorInfoToFile (My_Err, My_Eradr, ErrFile$)
           
           if my_err = 58 then RESUME whatever     ' file already exists
           if my_err = 53 then resume whateverelse ' file not found
           resume someplaceelse or END             ' Specific error not listed
           

          ------------------




          [This message has been edited by Mel Bishop (edited October 31, 2002).]
          There are no atheists in a fox hole or the morning of a math test.
          If my flag offends you, I'll help you pack.

          Comment


          • #6
            Any chance we can have an ERL return that will return not just
            numeric line labels but TEXT-type labels too?
            I'll put it on the wish list. It may be that a TRY..CATCH design
            is more likely, though, considering recent directions in PB/CC 3
            and PB/Win 7.

            ------------------
            Tom Hanlin
            PowerBASIC Staff

            Comment

            Working...
            X