Estoy probando la libreria de Carles Aubia para conectar con cualquier base de datos https://github.com/carles9000/wdo.
He creado en /htdocs/lib/wdo y he copiado wdo.hrb en dicha carpeta.
He creado el siguiente ejemplo siguiendo el manual de Carles
Code: Select all
// --------------------------------------------------------------
// Title......: WDO Web Database Objects
// Description: Test WDO - ADO
// Date.......: 17/09/2019
//
// {% LoadHRB( '/lib/wdo/wdo.hrb' ) %} // Loading WDO lib
// --------------------------------------------------------------
FUNCTION Main()
?? '<h3>VERSION WDO ==> ' , WDO():version()
return nil
Error: Unknown or unregistered symbol
operation: PTRTOSTR
called from: HB_HRBLOAD, line: 0
called from: ..\source\exec.prg, LOADHRB, line: 159
called from: ..\source\exec.prg, (b)REPLACEBLOCKS, line: 133
called from: ..\source\exec.prg, REPLACEBLOCKS, line: 133
called from: ..\source\exec.prg, EXECUTE, line: 55
Source: