Article ID: 180787 - Last Review: March 11, 2005 - Revision: 2.2 PRB: Explicitly Referring to Variables in a Module Causes ErrorThis article was previously published under Q180787 On This PageSYMPTOMS
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.
MORE INFORMATIONSteps to Reproduce Behavior
| Article Translations
|
Back to the top
