[<<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
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson