forked from rubberduck-vba/Rubberduck
-
Notifications
You must be signed in to change notification settings - Fork 12
VariableNotDeclaredInspection
Mathieu Guindon edited this page Feb 23, 2015
·
3 revisions
Inspection: VariableNotDeclaredInspection
Description: Variable is not declared
Type: CodeInspectionType.CodeQualityIssues
Default severity: CodeInspectionSeverity.Error
This inspection finds variables that are used, but not declared (a compile-time error with Option Explicit
).
###Example:
Variable foo
is not declared:
Public Sub DoSomething()
Dim bar As Integer
bar = foo
End Sub
###QuickFixes
This inspection does not have any quickfix; it mostly serves as a pre-compilation warning, that is really useful only when Option Explicit
is not specified.