PRB: Can't Watch Properties or Fields Used in a WITH Statement
Article ID: 129447
Article Last Modified on 12/9/2003
APPLIES TO
- Microsoft Visual Basic 4.0 Standard Edition
- Microsoft Visual Basic 4.0 Professional Edition
- Microsoft Visual Basic 4.0 Professional Edition
- Microsoft Visual Basic 4.0 16-bit Enterprise Edition
- Microsoft Visual Basic 4.0 32-Bit Enterprise Edition
This article was previously published under Q129447
SYMPTOMS
While debugging, no value is displayed if you add properties of objects or
fields of User Defined Types (UDTs) that are accessed by a WITH Statement
to the Watch Window. Instead, the message "Expression not defined in
context" is displayed.
NOTE: You cannot use the WITH statement itself from inside the Debug
Window.
STATUS
This behavior is by design.
Keywords: kbprogramming kbprb KB129447