I found this question has been asked in FAQ before (thread796-1070862) but not answered as the questioner provided no code. So I ask it and provide the code below.
Question: "Why does VB.Net (2005) give a Warning "Inappropriate use of overload keyword in a module"?. Checking online help and several other sources the code I am using seems to exactly meet all requirements. The module looks like this:
Option Explicit On
Option Strict On
Public Module ModIO
Public Overloads Function MyFunction (ByRef X As Boolean) As Boolean
---
End Function
Public Overloads Function MyFunction (ByRef X As String) As Boolean
---
End Function
End module
According to Help the functions must be different in one of 5 different listed ways, on of them being the parameter type as above.
Question: "Why does VB.Net (2005) give a Warning "Inappropriate use of overload keyword in a module"?. Checking online help and several other sources the code I am using seems to exactly meet all requirements. The module looks like this:
Option Explicit On
Option Strict On
Public Module ModIO
Public Overloads Function MyFunction (ByRef X As Boolean) As Boolean
---
End Function
Public Overloads Function MyFunction (ByRef X As String) As Boolean
---
End Function
End module
According to Help the functions must be different in one of 5 different listed ways, on of them being the parameter type as above.