-
Notifications
You must be signed in to change notification settings - Fork 302
VariableTypeNotDeclaredInspection
Max Dörner edited this page Jun 2, 2019
·
4 revisions
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.
foo
is an implicit Variant
in the below fairly common beginner mistake:
Dim foo, bar As Integer
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