XS9016 Class name .. differs : just by adding optional class statement
Posted: Thu Aug 18, 2022 8:27 pm
Consider this:
As you can see I add Class (something) like in VO as this makes it directly visible in which class you are working which in VS requires you to look to the upper left of the screen while it doesn't show when you are browsing.
So the CLASS xx is optional, like a comment.
Why then do I get this error in the 2nd method then? The first method is fine, with the 2nd method just below (so in the same class) the 1st, only this error shows (until I remove class NewMail again which I don't want)
Error XS9016 Class name NewMail for method differs from parent class name NewEmail
Dick
Code: Select all
Public Partial Class NewEmail
Method AcceptSaveAndSendEmail() As Logic Pascal Class NewEmail
Return Self:AcceptAndSaveAndOrSendEmail(True, False, True, Null_date)
Method AcceptAndSaveAndOrSendEmail(lSend As Logic, lAuto As Logic, lCheckAddress As Logic, dSendDate As Date) As Logic Pascal Class NewMail
ENDCLASS //Newmail
So the CLASS xx is optional, like a comment.
Why then do I get this error in the 2nd method then? The first method is fine, with the 2nd method just below (so in the same class) the 1st, only this error shows (until I remove class NewMail again which I don't want)
Error XS9016 Class name NewMail for method differs from parent class name NewEmail
Dick