fbpx
Welcome, Guest
Username: Password: Remember me
Visual Objects

Please use this forum to post questions about Visual Objects and Vulcan.NET
  • Page:
  • 1

TOPIC: VO Subclass Fieldget from Datawindow

VO Subclass Fieldget from Datawindow 1 year 5 months ago #1

  • Frank Müßner
  • Frank Müßner's Avatar Topic Author
  • Offline
  • Posts: 83
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.

VO Subclass Fieldget from Datawindow 1 year 5 months ago #2

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.

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

Last edit: by robert.

VO Subclass Fieldget from Datawindow 1 year 5 months ago #3

  • Frank Müßner
  • Frank Müßner's Avatar Topic Author
  • Offline
  • Posts: 83
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.

  • Page:
  • 1