Inspection Details

ObsoleteCallStatement


Summary
Locates explicit 'Call' statements.
Reasoning
The 'Call' keyword is obsolete and redundant, since call statements are legal and generally more consistent without it.
The following code example(s) would trigger this inspection:

Public Sub Test()
    Call DoSomething(42)
End Sub
Private Sub DoSomething(ByVal foo As Long)
    ' ...
End Sub

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

Public Sub Test()
    DoSomething 42
End Sub
Private Sub DoSomething(ByVal foo As Long)
    ' ...
End Sub


Back to List