Error XS0505 ..cannot override because .. is not a function
Posted: Tue Mar 10, 2020 7:57 pm
Sorry, another one. It is not further documented. The method below originally yielded an error because it was of CLASS TextControl. As it is only used to set the Textcolor of 1 or 2 SLE's I changed it to class IC2SLE (my SingleLineEdit subclass) and moved it (in X#) to a prg with other methods of this class. So it looks now as follows:
PARTIAL CLASS IC2SLE INHERIT SingleLineEdit
....
METHOD TextColor(uValue)
SELF:TextColor:=uValue
RETURN NIL
Works as expected in VO, but in X# it gives this error:
Error XS0505 'IC2SLE.TextColor(params XSharp.__Usual[])': cannot override because 'VO.TextControl.TextColor' is not a function IC2 lib C:XporterOutputOkIC2 libControl.prg 459
What does this mean?
Dick
PARTIAL CLASS IC2SLE INHERIT SingleLineEdit
....
METHOD TextColor(uValue)
SELF:TextColor:=uValue
RETURN NIL
Works as expected in VO, but in X# it gives this error:
Error XS0505 'IC2SLE.TextColor(params XSharp.__Usual[])': cannot override because 'VO.TextControl.TextColor' is not a function IC2 lib C:XporterOutputOkIC2 libControl.prg 459
What does this mean?
Dick