Inspection Details

ObsoleteLetStatement


Summary
Locates explicit 'Let' assignments.
Reasoning
The legacy syntax is obsolete/redundant; prefer implicit Let-coercion instead.
The following code example(s) would trigger this inspection:

Public Sub DoSomething()
    Dim foo As Long
    Let foo = 42 ' explicit Let is redundant
End Sub

The following code example(s) would not trigger this inspection:

Public Sub DoSomething()
    Dim foo As Long
    foo = 42 ' [Let] is implicit
End Sub


Back to List