VBA222 — Property Let/Set arity disagrees with Get¶
Severity: 🔴 error Category: property Phase: 2.3
Description¶
Property Let/Set parameter count must equal Property Get's parameter count + 1 (the value parameter).
Failing example¶
Property Get Foo() As Long: End Property
Property Let Foo(ByVal a As Long, ByVal b As Long): End Property
Compliant example¶
How to fix¶
Add or remove parameters until Let/Set has Get-arg-count + 1 parameters.
Source: src/rules.py — entry VBA222.