xsharp.eu • VO Subclass Fieldget from Datawindow
Page 1 of 1

VO Subclass Fieldget from Datawindow

Posted: Fri Sep 22, 2017 2:46 pm
by Frank Müßner
Hello,

i want to subcall the Fieldget from Datawindow

I make this like other Subclassing

CLASS MYDATAWINDOW INHERIT DATAWINDOW
DECLARE METHOD Fieldget
DECLARE METHOD Fieldput

METHOD INIT(oOwner,oResIDSource,nResourceID) CLASS MYDATAWINDOW
SUPER:INIT(oOwner,oResIDSource,nResourceID)
RETURN self

Method FIELDGET(uField) class MYDATAWINDOW
....
RETURN super:FIELDGET(uField)

METHOD FIELDPUT(uField, uValue) CLASS MYDATAWINDOW
.....
RETURN super:FIELDPUT(uField, uValue)


I get compile Error:
Missing implementation of typed method fieldput that was declared in cass MYDatawindow

what type as pascal i have to use?

Regards, Frank

VO Subclass Fieldget from Datawindow

Posted: Fri Sep 22, 2017 2:57 pm
by robert
Frank,
Frank Müßner wrote: CLASS MYDATAWINDOW INHERIT DATAWINDOW
DECLARE METHOD Fieldget
DECLARE METHOD Fieldput
Remove the declare method lines.
These 2 methods already exist in the DataWindow class.
You need to use the same prototype in the subclass (like you did) and that means that you cannot use DECLARE METHOD.

Robert

VO Subclass Fieldget from Datawindow

Posted: Sat Sep 23, 2017 7:30 am
by Frank Müßner
Thanks Robert,

I was on the wrong way.
I try to change the behavior from Checkbox, because i get no Logic Filedtype from DB, only Numeric. And i try to implement when numeric with fieldlen 1 translate this to a logic Value for the Checkbox.
The Fielget method from Datawindow is not the right way to do.
I will look deeper.

Frank