PRB: Explicitly Referring to Variables in a Module Causes Error (180787)
The information in this article applies to:
- Microsoft Windows CE Toolkit for Visual Basic 6.0
- Microsoft eMbedded Visual Basic 3.0
This article was previously published under Q180787 SYMPTOMS
When you explicitly refer to variables in a module, such as Module1.Variable1, the following error occurs:
An error was encountered while running this program.
RESOLUTION
When you compile Windows CE projects in Visual Basic all module information is concatenated together and module names are not retained. Thus, making the module variables public and referring to them elsewhere in the project without the module name avoids the error. Ensure that the names of those variables do not conflict with any public variables declared in any form or code module.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 3/11/2005 |
---|
Keywords: | kbpending kbprb kbToolkit KB180787 |
---|
|