PRB: Moving Off 'Sub' Doesn't Create 'End Sub' (129938)
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 Q129938 SYMPTOMS
If you use the mouse or arrow keys to move off the statement:
Sub X ()
the End Sub statement is not generated, and the Sub X() statement appears
as part of the subroutine that follows it.
CAUSE
This is by design. The purpose of this behavior is to give you control over
whether or not an End Sub is automatically generated. There are cases when
it is desirable not to have an End Sub generated.
RESOLUTION
Leaving the Sub line by pressing the ENTER key automatically generates
the appropriate End Sub. This also adds the End Sub where one did
not exist if you previously left the line by using the mouse or arrow keys.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 12/9/2003 |
---|
Keywords: | kbprb KB129938 kbAudDeveloper |
---|
|