Skip to content

ObsoleteLetStatementInspection

Max Dörner edited this page Jun 2, 2019 · 3 revisions

Description: Use of obsolete Let statement

Type: CodeInspectionType.LanguageOpportunities

Default severity: CodeInspectionSeverity.Warning

This inspection finds assignments made using the obsolete Let keyword.

Example:

Parameter foo is assigned using the obsolete Let keyword.

Dim foo As Integer
Let foo = 42

In older version of the language, the Let keyword was required for value assignments. It can safely be omitted.


QuickFixes

QuickFix: Remove obsolete statement

Dim foo As Integer
foo = 42

This quickfix simply removes the superfluous Let keyword.

Clone this wiki locally