Table of Contents

RDC00117: Implicit constant type

Severity: Information  ·  Family: RDC (Rubberduck Core analyzers)  ·  Raised by: ImplicitConstantTypeAnalyzer

A constant states no type: it has no As clause and no type-declaration character.

A constant has a declared type all the same (RD-VBAL §5.2.3.2 Const Declarations), which the reader must work out from its value. An As clause states the type where the constant is declared.

The finding is the name of the constant, of a module or of a procedure.

How it is raised

Situation Example Resolution
A constant with no As clause and no type character. Const myInteger = 12345 Const myInteger As Integer = 12345

A constant that states its type with a type character (Const myInteger% = 12345) is not reported; RDC00307 reports the character.

See also


ACCUEIL • HOME | ℹ️ BIENVENUE • WELCOME | 🧩 BÂTISSONS • BUILD | RD-VBAL | SDK | 🌐 rubberduckvba.ca