You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version 2.5.1.5557
OS: Microsoft Windows NT 10.0.19041.0, x64
Host Product: Microsoft Office x64
Host Version: 16.0.13628.20448
Host Executable: EXCEL.EXE
Description
The 'inappropriate use of IsMissing' code inspection' appears when IsMissing is used on a ParamArray saying that IsMissing will always return False. This is incorrect, IsMissing can return True if no elements are passed into the ParamArray.
To Reproduce
Sub Testing()
TestOfParamArrayAndIsMissing
TestOfParamArrayAndIsMissing "Foo", "Bar"
End Sub
Sub TestOfParamArrayAndIsMissing(ParamArray vArgs() As Variant)
If IsMissing(vArgs) Then
Debug.Print "vArgs is missing ... IsMissing has returned True"
Else
Debug.Print "vArgs is present ... IsMissing has returned False"
End If
End Sub
Expected behavior
The code inspection should not flag a problem for the use of IsMissing on a ParamArray.
The text was updated successfully, but these errors were encountered:
ghost
added
the
bug
Identifies work items for known bugs
label
Feb 28, 2021
Rubberduck version information
Description
The 'inappropriate use of IsMissing' code inspection' appears when IsMissing is used on a ParamArray saying that IsMissing will always return False. This is incorrect, IsMissing can return True if no elements are passed into the ParamArray.
To Reproduce
Expected behavior
The code inspection should not flag a problem for the use of IsMissing on a ParamArray.
The text was updated successfully, but these errors were encountered: