What kinds of predetermined rules can the Visual Basic Code Advisor detect?
The following list shows a sample of the predetermined rules that are detected by this tool: • Late binding of variant object. An object is late-bound when it is assigned to variable declared to be of type Object. Objects of this type can hold references to any object. When the Visual Basic Upgrade Wizard upgrades a variable whose type is Object, it cannot identify the specific type of the variable, and none of the accesses to the corresponding class members are upgraded. This problem can be fixed by using specific types in the declaration of all variables. This is enforced using the directive Option Strict On. The Visual Basic 6.0 Code Advisor detects undeclared variables and suggests the developer use Option Strict On. • Missing option explicit. Leaving this option undeclared allows the developer to use undeclared variables in the source code. Undeclared variables default to type Variant, which can hold a value of any type. Such variables result in the same upgrade problems as mentio