Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QuickBASIC 3.0 - <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 error number n.

           n    An integer expression in the range 0 to 255.

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

      Notes:    If n is not one of BASIC's standard error numbers, and no
                ON ERROR routine is in use, ERROR n stops program
                execution and produces an "Unprintable error" error
                message.

                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 BASIC's error numbers.

                If you are using a nonstandard error number, Microsoft
                recommends that you use the highest available number, to
                maintain compatibility with future releases of QuickBASIC.

                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