Peter Chan
asked on
Problem to "overrides" function
Hi,
how to correct the line like
due to this error?
how to correct the line like
Public Overrides Function LoadReportData(GenText As Boolean) As Integer
...
due to this error?
Error 8 function 'LoadReportData' cannot be declared 'Overrides' because it does not override a function in a base class.
ASKER
I did what you suggested, but I still get
Error 19 'Public Function LoadReportData(GenText As Boolean) As Integer' cannot shadow a method declared 'MustOverride'.
due to this Public Function LoadReportData(GenText As Boolean) As Integer
...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
why do I get this
cannot shadow a method declared 'MustOverride'
now? Thanks
cannot shadow a method declared 'MustOverride'
now? Thanks
Please post the code of your base class and your derived class.
Check signature of LoadReportData in base class, your override should match exactly in terms of parameters, your line is right, its just you have to make sure yours parameters are right
Public Function LoadReportData(GenText As Boolean) As Integer