Watch Value and Watchpoint Ignored During Event or ERROR Trap (47510)
This article was previously published under Q47510
SUMMARY
When using ON ERROR GOTO or any of the ON event GOSUB statements
(where event includes KEY, TIMER, COM, PEN, PLAY, and STRIG),
watchpoints or watch values will not function while you are in the ON
ERROR GOTO or ON <event> GOSUB subroutine. Watch values will show the
default value for the type of variable (either 0 or a null string),
and watchpoints will not halt the program.
This behavior occurs in the QB.EXE editor for QuickBasic Versions
4.00, 4.00b, 4.50 and the QB.EXE editor for Microsoft Basic Compiler
Versions 6.00 and 6.00b. This behavior is a known design limitation of
these versions of QuickBasic and is not an error.
The QBX.EXE editor for Microsoft Basic PDS 7.00 has been enhanced
so that you may now use watchpoints and watch values in ON ERROR GOTO
and ON <event> GOSUB subroutines.
Modification Type: |
Minor |
Last Reviewed: |
1/8/2003 |
Keywords: |
KB47510 |
|