BUG: Code Outside of Procedures Executes on Application StartupLast reviewed: February 10, 1998Article ID: Q180818 |
The information in this article applies to:
SYMPTOMSCode placed outside of procedures or functions will be executed on application startup.
CAUSECompiler warnings or errors are not generated.
RESOLUTIONDo not place code other than declarations outside of subs, functions, or event procedures. Although this could be used for the same purpose as a SubMain or the Form Load event, it is strongly recommended that this behavior be avoided to provide future compatibility.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
REFERENCESOnline Book for Microsoft Windows CE Toolkit for Visual Basic 5.0
|
Additional query words: Wince 10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |