qbasic.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
ERROR Statement
  Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
Simulates an occurrence of a Basic error or a user-defined error.
 
ERROR expression%
 
    ■ expression%    The error code of a Basic or user-defined error; a
                     value in the range 1 through 255. To define your own
                     error, use a value that isn't listed in the Basic
                     Run-Time Error Codes table.
 
Example
 
See Also    ERDEV, ERDEV$    ERR, ERL    ON ERROR    RESUME