EXTEND CLASS FWMaria WITH METHOD insert_2

EXTEND CLASS FWMaria WITH METHOD insert_2

Postby goosfancito » Sat Mar 05, 2022 1:06 pm

hOLA.
Quiero agregarle funcionalidad a la clase, al poner de ese modo no me deja,
como debería de hacerlo?
Code: Select all  Expand view  RUN
  EXTEND CLASS FWMaria WITH METHOD insert_2

gracias
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
goosfancito
 
Posts: 1954
Joined: Fri Oct 07, 2005 7:08 pm

Re: EXTEND CLASS FWMaria WITH METHOD insert_2

Postby carlos vargas » Sat Mar 05, 2022 6:52 pm

NO se puede.
en fwh han limitado esa funcionalidad.
Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
User avatar
carlos vargas
 
Posts: 1721
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Re: EXTEND CLASS FWMaria WITH METHOD insert_2

Postby Enrico Maria Giordano » Sun Mar 06, 2022 8:16 pm

This is a working sample:

Code: Select all  Expand view  RUN
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oDlg

    #ifdef __XHARBOUR__
        EXTEND CLASS TDialog WITH MESSAGE Test INLINE Test()
    #else
        __CLSADDMSG( TDialog():classH, "Test", { || Test() }, HB_OO_MSG_INLINE )
    #endif

    DEFINE DIALOG oDlg

    @ 1, 1 BUTTON "Test";
           ACTION oDlg:Test( "Hello" )

    ACTIVATE DIALOG oDlg;
             CENTER

    RETURN NIL


STATIC FUNCTION TEST()

    ? "Hello"

    RETURN NIL


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: EXTEND CLASS FWMaria WITH METHOD insert_2

Postby carlos vargas » Mon Mar 07, 2022 6:03 pm

Enrico, la clase nativa mysql/mariadb in fwh no hereda, es una limitacion de parte de los desarrolladores.
otras clases funciona bien.
Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
User avatar
carlos vargas
 
Posts: 1721
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua



Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 21 guests