D
Dave
I have a function 'Private MyFunc(ByVal dbS as String) As Boolean' where dbS
is a database value determined by the database reader method.
I was having some difficulty when dbS is null, so I decided to create an
overloaded function: 'Private Overloads MyFunc(ByVal dbS as DBNull) As
Boolean'. I added the Overloads keyword to the original also, of course.
This resulted in the run-time error "Public member 'MyFunc' on type
'MyClass' not found."
This did not make sense, but on a whim, I changed the Private declarations
to Public, and it worked fine. Can anyboday explain this? Why does
overloading change the requirements of Private/Public?
Thanks,
Dave
is a database value determined by the database reader method.
I was having some difficulty when dbS is null, so I decided to create an
overloaded function: 'Private Overloads MyFunc(ByVal dbS as DBNull) As
Boolean'. I added the Overloads keyword to the original also, of course.
This resulted in the run-time error "Public member 'MyFunc' on type
'MyClass' not found."
This did not make sense, but on a whim, I changed the Private declarations
to Public, and it worked fine. Can anyboday explain this? Why does
overloading change the requirements of Private/Public?
Thanks,
Dave