forked from rubberduck-vba/Rubberduck
-
Notifications
You must be signed in to change notification settings - Fork 12
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.