Rule Definition
Visual Basic has specific behavior that enable the developer to use variables even if these variables have not been previously declared and typed. However, it is possible to avoid this default behavior using the Option Explicit : in this case, all variables will require a declaration prior use.
This provides 2 main benefits.
The first benefit is a lower memory consumption improving other all application's performance. This is due to the fact that undeclared variables are automatically created as Variant (large memory consumption).
The second benefit is that this option helps the developer to detect typing errors when writing code.
Remediation
Add the Option Explicit the modules and frames which not using the rules and then declare explicitly variables.
Related Technologies
Visual Basic
Technical Criterion
Complexity - Dynamic Instantiation
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.