RDC00123: Bang notation
Severity: Information · Family: RDC (Rubberduck Core analyzers) ·
Raised by: BangNotationAnalyzer
A dictionary access, items!key, of an object of a known class.
The ! gives the name after it, as a String, to the default member of the object
(RD-VBAL §5.6.14 Dictionary Access Expressions): items!key is items.Item("key").
It looks like a member of the object, and is a string the compiler does not check.
The finding is the whole expression.
How it is raised
| Situation | Example | Resolution |
|---|---|---|
A ! name. |
price = fields!Price |
Name the member and pass the string: price = fields.Item("Price"). |
See also
- RD-VBAL §2.6.4 Rubberduck Core Diagnostics
RDC00124: the same, of anObjectRDC00121: an argument list given to the default member
ACCUEIL • HOME | ℹ️ BIENVENUE • WELCOME | 🧩 BÂTISSONS • BUILD | RD-VBAL | SDK | 🌐 rubberduckvba.ca