fbpx
× Visual Objects

Please use this forum to post questions about Visual Objects and Vulcan.NET

VO Subclass Fieldget from Datawindow

More
1 year 4 months ago #1 by Frank Müßner
VO Subclass Fieldget from Datawindow was created 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

Please Log in or Create an account to join the conversation.

More
1 year 4 months ago - 1 year 4 months ago #2 by Robert van der Hulst
Replied by Robert van der Hulst on topic VO Subclass Fieldget from Datawindow
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

XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.
Last edit: 1 year 4 months ago by Robert van der Hulst.

Please Log in or Create an account to join the conversation.

More
1 year 3 months ago #3 by Frank Müßner
Replied by Frank Müßner on topic 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

Please Log in or Create an account to join the conversation.