Harbour Data Objects HDO

Harbour Data Objects HDO

Postby xmanuel » Sat Feb 01, 2020 8:37 am

He empezado a usar el pre-procesador en HDO y fijaros un ejemplo de un mantenimiento de una tabla usando HDORDD.
Por cierto vale para MySQL/MariaDB, SQLite/SQLCipher y para todas las que tengan driver ODBC y especialmente SQL Server y Access de MicroSoft...
Code: Select all  Expand view

 #include "hdo.ch"

REQUEST RDLMYSQL

procedure main35

    local oCon

    INIT CONNECT oCon VIA "mysql" ;
        DATABASE "hdodemo"        ;
        HOST "localhost"          ;
        USER "root"               ;
        PASSWORD "root"

    START RDD WITH oCon

    USE test NEW ALIAS test VIA "HDO" //WITH oCon

    Browse()

    CLOSE test

    CLOSE CONNECT oCon

return

 

Con esto tengo Altas, bajas y modificaciones.
De este codigo solo hay que cambiar: REQUEST RDLMYSQL y VIA "mysql" para que funcione con lo enumerado...
______________________________________________________________________________
Sevilla - Andalucía
xmanuel
 
Posts: 756
Joined: Sun Jun 15, 2008 7:47 pm
Location: Sevilla

Re: Harbour Data Objects HDO

Postby MOISES » Sat Feb 01, 2020 9:06 am

Excelente!

¿Y ya está disponible también el dbcreate?
Saludos / Regards,

FWH 20.04, Harbour 3.2.0 dev (r1909261630) y BCC 7.40
MOISES
 
Posts: 838
Joined: Wed Aug 22, 2007 10:09 am


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: groiss and 41 guests