PRB: Script Code Runs During AddCode Method (184743)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic for Applications 5.0
This article was previously published under Q184743 SYMPTOMS
Script code runs when you load code into the script control using the
AddCode method.
CAUSE
The script contains statements outside of a procedure definition.
RESOLUTION
Remove any statements outside of procedure definitions.
STATUS
This behavior is by design.
REFERENCES
For information about obtaining the Script control, please see the
following article in the Microsoft Knowledge Base:
184739 INFO: Where to Obtain the Script Control
(c) Microsoft Corporation 1998, All Rights Reserved. Contributions by
Malcolm Stewart, Microsoft Corporation
Modification Type: | Minor | Last Reviewed: | 7/16/2004 |
---|
Keywords: | kbprb kbScript KB184743 |
---|
|