ejemplo 1:
- Code: Select all Expand view
- function Main()
?? LoadHRB( 'lib/mercury/testhrb.hrb' )
?? hb_GetEnv( "PRGPATH" ) + "/"+"lib/mercury/testhrb.hrb"
return nil
return:
- Code: Select all Expand view
- .F. /var/www/html/modharbour_samples/lib/mercury/testhrb.hrb (editado)
nota: creé una ruta lib / mercury solo para probarla, existe en el mismo directorio que se muestra
ejemplo 2:
- Code: Select all Expand view
- // {% LoadHRB( 'lib/mercury/mercury.hrb' ) %}
#include {% MercuryInclude( 'lib/mercury' ) %}
//Função de entrada para a aplicação
FUNCTION Main()
local oApp,nRetVal, n, m, hField, hRow
[...]
return:
- Code: Select all Expand view
Error: Undefined function
operation: MERCURYINCLUDE
[ 1] = C lib/mercury
called from: MERCURYINCLUDE, line: 0
called from: ../source/exec.prg, (b)REPLACEBLOCKS, line: 141
called from: ../source/exec.prg, REPLACEBLOCKS, line: 141
called from: ../source/exec.prg, EXECUTE, line: 63
¿Alguien tiene alguna idea de lo que puedo estar haciendo mal?