Skip to content

ObsoleteCallStatementInspection

Mathieu Guindon edited this page Feb 23, 2015 · 3 revisions

Description: Use of obsolete Call statement

Type: CodeInspectionType.LanguageOpportunities

Default severity: CodeInspectionSeverity.Warning

This inspection finds procedure calls made using the obsolete Call keyword.

###Example:

Call to procedure DoSomething is using an obsolete language syntax:

Call DoSomething(42)

The Call keyword exists in modern-day VBA only for backward compatibility. New code shouldn't be using this keyword.


###QuickFixes

QuickFix: Remove obsolete statement

DoSomething 42

The quickfix removes the Call keyword and parentheses around the list of arguments.