-
Notifications
You must be signed in to change notification settings - Fork 301
VariableTypeNotDeclaredInspection
Mathieu Guindon edited this page Feb 23, 2015
·
4 revisions
Inspection: VariableTypeNotDeclaredInspection
Description: Variable type is implicitly Variant
Type: CodeInspectionType.LanguageOpportunities
Default severity: CodeInspectionSeverity.Suggestion
This inspection finds declarations without an explicit As
type declared, and without a type hint.
###Example:
foo
is an implicit Variant
in the below fairly common beginner mistake:
Dim foo, bar As Integer
###QuickFixes
QuickFix: Declare as explicit Variant
Not very clever, but good enough to satisfy this inspection for now:
Dim foo As Variant, bar As Integer
rubberduckvba.com
© 2014-2021 Rubberduck project contributors
- Contributing
- Build process
- Version bump
- Architecture Overview
- IoC Container
- Parser State
- The Parsing Process
- How to view parse tree
- UI Design Guidelines
- Strategies for managing COM object lifetime and release
- COM Registration
- Internal Codebase Analysis
- Projects & Workflow
- Adding other Host Applications
- Inspections XML-Doc
-
VBE Events