VO Subclass Fieldget from Datawindow

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
Post Reply
Frank Müßner
Posts: 280
Joined: Sat Dec 12, 2015 2:22 pm
Location: Germany

VO Subclass Fieldget from Datawindow

Post 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
User avatar
robert
Posts: 4558
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

VO Subclass Fieldget from Datawindow

Post 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
XSharp Development Team
The Netherlands
robert@xsharp.eu
Frank Müßner
Posts: 280
Joined: Sat Dec 12, 2015 2:22 pm
Location: Germany

VO Subclass Fieldget from Datawindow

Post 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
Post Reply