Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Basic - <b>error force error</b> http://www.X-Hacker.org [<<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

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson