CLEAR Resets ON ERROR GOTO and Turns Off Error Trapping (45451)
The information in this article applies to:
- Microsoft QuickBASIC 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBASIC 4.5
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0
- Microsoft BASIC Compiler for MS-DOS and OS/2 6.0b
- Microsoft Basic Professional Development System (PDS) for MS-DOS and MS OS/2 7.0
This article was previously published under Q45451 SUMMARY
The CLEAR statement in a QuickBasic program turns off error handling
routines. Any error that happens after a CLEAR statement is not
trapped by an error handling routine that was initiated before the
CLEAR statement. To trap errors after a CLEAR statement, you must
reinstate the error handling routine with a new ON ERROR GOTO clause.
This applies to Microsoft QuickBasic Versions 3.00, 4.00, 4.00b, and
4.50, and Microsoft Basic Compiler Versions 6.00, 6.00b for MS-DOS and
MS OS/2, and Microsoft Basic PDS 7.00 for MS-DOS and MS OS/2.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | KB45451 |
---|
|