[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ERROR                    Force Error

 ERROR n

    Produces runtime error number n.

           n    An integer expression in the range 0 to 255.

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

      Notes:    If n is not one of Turbo Basic's predefined runtime error
                numbers, and no ON ERROR routine is in use, ERROR n stops
                program execution and produces the message:

                    Error n at pgm-ctr: address

                If an ON ERROR routine is in effect, an ERROR n statement
                is trapped in the normal way, whether or not the number is
                one of Turbo Basic's predefined error numbers.

                This statement is provided as an aid in debugging error-
                trapping routines.

See Also: ERL ERR ON ERROR RESUME
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson