PRB: Empty Sub Procedures Are Not Persistent
Article ID: 129949
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 Q129949
SYMPTOMS
You receive the "Sub or Function not defined" error when executing code
that references an empty event procedure.
CAUSE
If you have an event procedure that is being called from another Sub
procedure in the program, and you delete all the code in the event
procedure, any references to that event procedure generate an error message
at compile time.
RESOLUTION
Remove references to the empty event procedures or place a comment line
into the procedure.
STATUS
This behavior is by design.
Additional query words: 4.00 vb4win vb4all
Keywords: kbprb KB129949