Search found 51 matches: lerror

Return to advanced search

Re: Clase Nativa MySql

... us provided to faclititate grouping of several DML statements/ methods inside TRY/CATCH block for Transactions. Example Usage: // -------- local lError := .f. oCn:BeginTransaction() oCn:lThrowError := .t. TRY oCn:Insert(....) oCn:Update(...) oCn:Execute( "INSERT ... " ) ... CATCH lError ...
by carlos vargas
Fri Jul 15, 2022 12:43 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Clase Nativa MySql
Replies: 18
Views: 1881

Re: New FTDN November/Noviembre (FWH 21.11)

... facilitar la agrupación de varias declaraciones / métodos DML dentro del bloque TRY / CATCH para transacciones. Ejemplo de uso: // -------- local lError := .f. oCn:BeginTransaction() oCn:lThrowError := .t. TRY oCn:Insert(....) oCn:Update(...) oCn:Execute( "INSERT ... " ) ... CATCH lError ...
by Antonio Linares
Tue Nov 30, 2021 10:38 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN November/Noviembre (FWH 21.11)
Replies: 2
Views: 1014

New FTDN November/Noviembre (FWH 21.11)

... us provided to faclititate grouping of several DML statements/ methods inside TRY/CATCH block for Transactions. Example Usage: // -------- local lError := .f. oCn:BeginTransaction() oCn:lThrowError := .t. TRY oCn:Insert(....) oCn:Update(...) oCn:Execute( "INSERT ... " ) ... CATCH lError ...
by Antonio Linares
Tue Nov 30, 2021 7:19 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN November/Noviembre (FWH 21.11)
Replies: 2
Views: 1014

Re: An easy way to make a tree-browse

... MENUITEM "删除本阶" ACTION (if(msgyesno("删除当前代码","请确认"),(obrow2:odbf:DELETE(),if(!oserver:lerror,(obrow2:otreeitem:DELETE(),obrow2:refresh()),msgstop("该科目在凭证中已经使用,需要先在凭证里修改或者删除","停止"))),)) ENDMENU return oMenu2 // dynamic ...
by ShumingWang
Wed Jul 31, 2019 1:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: An easy way to make a tree-browse
Replies: 17
Views: 3590

Re: Algun experto en el foro que use o uso Eagle 1 ?

FUNCTION DPMYSQLBD(cDb,cIp,cLogin,cPass,nPort,lError,lCreate,lAdd) LOCAL oDb,oMySql,nAt DEFAULT cIp :=oDp:cIp ,; cLogin :=oDp:cLogin,; cPass :=oDp:cPass ,; nPort :=oDp:nPort ,; cDb :=oDp:cDsnData,; lError :=.T.,; lCreate :=.F.,; lAdd :=.F. // Agrega ...
by jnavas
Thu Nov 15, 2018 2:36 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Algun experto en el foro que use o uso Eagle 1 ?
Replies: 15
Views: 3475

Re: Clase TTABLE insertar Registros en Tablas SQL Lexico XBASE

... oDb:Close() ENDIF IF ValType(oServer)="O" oServer:Close() ENDIF RETURN STATIC FUNCTION CONECTAR(cIp,cLogin,cPass,nPort,lError) cIp := ALLTRIM(cIp ) cLogin := ALLTRIM(cLogin) cPass := ALLTRIM(cPass ) DEFAULT nPort :=3306,; lError:=.F. CursorWait() IF cTypeBD="MYSQL" ...
by Compuin
Mon Nov 12, 2018 8:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Clase TTABLE insertar Registros en Tablas SQL Lexico XBASE
Replies: 15
Views: 3691

Lectura de puertos seriales..

... todos los ejemplos del sitio y no logro. Dejo a Continuacion el Programa. #include "Fivewin.ch" function LeErPuertos() Local cDcb, lError, nError Local nComm := OpenComm( "COM2", 4024, 1024 ) if ! BuildCommDcb( "COM2:9600,N,8,1", @cDcb ) MsgStop( "Error ...
by Busmatic_wpb
Tue Jan 30, 2018 11:36 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Lectura de puertos seriales..
Replies: 9
Views: 2292

Re: funciones de FWH y Harbour en un archivo .txt

... Fact(<nInteger>)->nFactorial Fahrenheit(<nCelsius>)->nFahrenheit FClose(<nHandle>)->lError FCount()->nFields FCreate(<cFile,[<nAttibute>])->nHandle FErase(<cFile>)->nSuccess FError()->nErrorCode Field(<nPosition>)->cFieldName ...
by carlos vargas
Sat Oct 21, 2017 8:44 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: funciones de FWH y Harbour en un archivo .txt
Replies: 7
Views: 5726

MS SQL Dumb Question

... cTxdate := "" cTxtime := "" aAesmsg := {} cRespcode := "" cDispcode := "" cSeverity := "" lError := .F. aEmail := {} cEmResp := "" // Error... IF n001H <> -1 // Read-Only... // Process... DO WHILE ! lEof // Refresh... SysRefresh() ...
by cdmmaui
Tue May 10, 2016 10:27 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: MS SQL Dumb Question
Replies: 0
Views: 423

Re: HDO entra en escena

... O la liberación de la memoria ocupada. ... END Ademas evita que tengas que preguntar por el error después de cada sentencia, ya sabes el if oStmt:lError ... else ... end Es fácil no? ;-) Te recuerdo que clipper y por tanto harbour, cuenta con la construcción: BEGIN SEQUENCE WITH {| oError | Break( ...
by xmanuel
Wed Aug 19, 2015 9:34 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: HDO (Harbour Data Objects) entra en escena.
Replies: 11
Views: 3893

Clase TTABLE insertar Registros en Tablas SQL Lexico XBASE

... oDb:Close() ENDIF IF ValType(oServer)="O" oServer:Close() ENDIF RETURN STATIC FUNCTION CONECTAR(cIp,cLogin,cPass,nPort,lError) cIp := ALLTRIM(cIp ) cLogin := ALLTRIM(cLogin) cPass := ALLTRIM(cPass ) DEFAULT nPort :=3306,; lError:=.F. CursorWait() IF cTypeBD="MYSQL" ...
by jnavas
Mon Mar 09, 2015 7:14 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Clase TTABLE insertar Registros en Tablas SQL Lexico XBASE
Replies: 15
Views: 3691

Re: Strange problems on decimals - dangerous bug !!

... is very minimal. --- #include "fivewin.ch" procedure start() oSQLite := TSQLiteServer():New( "test.sql" ) If oSQLite:lError msgStop( "error" ) RETURN EndIf cQuery:="SELECT * from t_tables;" oQry:=oSQLite:Query(cQuery) nDecimals:=oQry:aData[1,7] ...
by cnavarro
Mon Jan 19, 2015 11:25 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Strange problems on decimals - dangerous bug !!
Replies: 37
Views: 5152

Re: Strange problems on decimals - dangerous bug !!

... is very minimal. --- #include "fivewin.ch" procedure start() oSQLite := TSQLiteServer():New( "test.sql" ) If oSQLite:lError msgStop( "error" ) RETURN EndIf cQuery:="SELECT * from t_tables;" oQry:=oSQLite:Query(cQuery) nDecimals:=oQry:aData[1,7] ...
by Marco Turco
Mon Jan 19, 2015 11:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Strange problems on decimals - dangerous bug !!
Replies: 37
Views: 5152

Re: Strange problems on decimals - dangerous bug !!

... numeric data from sqlite db. #include "fivewin.ch" procedure start() oSQLite := TSQLiteServer():New( "test.sql" ) If oSQLite:lError msgStop( "error" ) RETURN EndIf cQuery:="SELECT * from t_tables;" oQry:=oSQLite:Query(cQuery) nDecimals:=oQry:aData[1,7] ...
by Marco Turco
Sun Jan 18, 2015 7:09 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Strange problems on decimals - dangerous bug !!
Replies: 37
Views: 5152

Daniel - Cambios para tDolphin

... > 0 pero esto es un puntero osea validar que la reconexion fue correcta, para proceder a reasignar los querys, pero no halle mejor cosa que ::lError, por favor valida si es la mejor opcion METHOD ReConnect() CLASS TDolphinSrv   LOCAL oQry   ::hMysql := ::Connect()   IF HB_IsArray( ...
by carlos vargas
Sun Jan 05, 2014 6:53 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Daniel - Cambios para tDolphin
Replies: 3
Views: 817
Next

Return to advanced search