Microsoft KB Archive/44410
Article ID: 44410
Article Last Modified on 11/21/2006
- Microsoft QuickBasic 4.0
- Microsoft QuickBASIC 4.0b
- Microsoft QuickBasic 4.5 for MS-DOS
- Microsoft QuickBasic Professional Development System 7.0
- Microsoft QuickBasic Professional Development System 7.1
This article was previously published under Q44410
Watch variables (which are set in QuickBasic's Debug menu) have a local scope. That is, you must reset a Watch on that variable in each SUBprogram or FUNCTION procedure, even if the variable is in a SHARED or COMMON SHARED statement.
If you Add a Watch at the main module level for a SHARED or COMMON SHARED variable, when you Step into a SUB or FUNCTION, the message "<Not watchable>" appears in the Debug window.
This information applies to the QB.EXE environment in QuickBasic Versions 4.0, 4.0b, and 4.5, and to the QBX.EXE environment in Microsoft Basic Professional Development System (PDS) Versions 7.0 and 7.1.
Additional query words: QuickBas BasicCom 4.00 4.00b 4.50 7.00 7.10