Error ExecuteScript TDolphin

Error ExecuteScript TDolphin

Postby cmsoft » Sun Jul 20, 2014 11:12 pm

Hola Gente:
La función incluida en tdolpsrv.prg ExecuteScript, intuyo que tiene un error, o que yo no la interpreto.
Intento pasarle un Script, pero da error, pues quiere ejecutar el nombre del archivo que le paso por parametro.
El código dice así:
Code: Select all  Expand view

METHOD ExecuteScript( cFile, bOnScrip ) CLASS TDolphinSrv
   LOCAL cText
   LOCAL aLine
   IF Empty( cFile )
      cText  = D_ReadFile( cFile )
      aLine := hb_ATokens( cText, ";" )
      ::MultiQuery( aLine, , bOnScrip )
   ELSE
      ::Execute( cFile )
   ENDIF
RETURN NIL

No debería ser así?
Code: Select all  Expand view

METHOD ExecuteScript( cFile, bOnScrip ) CLASS TDolphinSrv
   LOCAL cText
   LOCAL aLine
   IF !Empty( cFile )
      cText  = D_ReadFile( cFile )
      aLine := hb_ATokens( cText, ";" )  
      ::MultiQuery( aLine, , bOnScrip )
   ENDIF
RETURN NIL
User avatar
cmsoft
 
Posts: 1275
Joined: Wed Nov 16, 2005 9:14 pm
Location: Mercedes - Bs As. Argentina

Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 21 guests