0

I am in this position again with warning that I cant get rid of, Here is the code:

Public Function POPErrors(ByVal strMsg As String)

        MsgBox("POP3 ERROR - " & vbNewLine & strMsg, MsgBoxStyle.Critical)

End Function

Here is the warning:
Function 'POPErrors' doesn't return a value on all code paths. A null reference exception could
occur at run time when the result is used.

What does that mean?
And how do I get rid of it.

2
Contributors
3
Replies
8
Views
4 Years
Discussion Span
Last Post by UKnod
0

Actually I got it

I put in POPerrors = ""

in the function and that got rid of it.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.