PRB: Empty Sub Procedures Are Not Persistent (129949)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
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.
Modification Type: | Major | Last Reviewed: | 12/9/2003 |
---|
Keywords: | kbprb KB129949 |
---|
|