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
-
- Posts: 280
- Joined: Sat Dec 12, 2015 2:22 pm
- Location: Germany
VO Subclass Fieldget from Datawindow
Frank,
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
Remove the declare method lines.Frank Müßner wrote: CLASS MYDATAWINDOW INHERIT DATAWINDOW
DECLARE METHOD Fieldget
DECLARE METHOD Fieldput
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
XSharp Development Team
The Netherlands
robert@xsharp.eu
The Netherlands
robert@xsharp.eu
-
- Posts: 280
- Joined: Sat Dec 12, 2015 2:22 pm
- Location: Germany
VO Subclass Fieldget from Datawindow
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
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