... Is there any way I can change the error message "Lost Connection to MySql server during query" to only log the error to a text file end return false to the calling fintion. At the moment the error is a MsgInfo and the process which is automatic with a Timer blocks the aplication.
This code do ...
Search found 71 matches: false
Searched query: false
- Mon Dec 30, 2024 2:09 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Lost connection to MySQL server during query
- Replies: 40
- Views: 15931
- Mon Dec 30, 2024 1:06 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Lost connection to MySQL server during query
- Replies: 40
- Views: 15931
Re: Lost connection to MySQL server during query
Is there any way I can change the error message "Lost Connection to MySql server during query" to only log the error to a text file end return false to the calling fintion. At the moment the error is a MsgInfo and the process which is automatic with a Timer blocks the aplication.
This code do'snt do ...
This code do'snt do ...
- Wed Nov 20, 2024 3:47 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Soporte a mariaConnect ?
- Replies: 11
- Views: 1810
Re: Soporte a mariaConnect ?
... para mariaConnect, es el manejo que hace de los campos lógicos : 1 o 0,,, teniendo que hacer control para el equivalente en dbf (true o false) o viceversa..
Jonsson Russi
Jonsson buenos días como estas?
No sería mejor que usaras los hash? creo que es una solución poderosa y fácil de ...
Jonsson Russi
Jonsson buenos días como estas?
No sería mejor que usaras los hash? creo que es una solución poderosa y fácil de ...
- Tue Nov 19, 2024 7:52 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Soporte a mariaConnect ?
- Replies: 11
- Views: 1810
Re: Soporte a mariaConnect ?
... a desarrollar... o ver si el objeto recordSet de otras librerias como HDO de mauel expósito lo permite..
Otro requerimiento para mariaConnect, es el manejo que hace de los campos lógicos : 1 o 0,,, teniendo que hacer control para el equivalente en dbf (true o false) o viceversa..
Jonsson Russi
Otro requerimiento para mariaConnect, es el manejo que hace de los campos lógicos : 1 o 0,,, teniendo que hacer control para el equivalente en dbf (true o false) o viceversa..
Jonsson Russi
- Sat Nov 02, 2024 5:52 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Problem with FW_ArrayAsList - Resolved -
- Replies: 4
- Views: 495
Problem with FW_ArrayAsList - Resolved -
https://i.postimg.cc/br0jdzb0/alista.png
Happen I have -CA-FI-----RM---NZ
I explain you
I have a array where I save if is true or false
ba:=IIF(oBrw:aArrayData[ 1 ][1]=.t.,"S","N")
ca:=IIF(oBrw:aArrayData[ 2 ][1]=.t.,"S","N")
fi:=IIF(oBrw:aArrayData[ 3 ][1]=.t.,"S","N")
ge:=IIF(oBrw ...
Happen I have -CA-FI-----RM---NZ
I explain you
I have a array where I save if is true or false
ba:=IIF(oBrw:aArrayData[ 1 ][1]=.t.,"S","N")
ca:=IIF(oBrw:aArrayData[ 2 ][1]=.t.,"S","N")
fi:=IIF(oBrw:aArrayData[ 3 ][1]=.t.,"S","N")
ge:=IIF(oBrw ...
- Fri Oct 18, 2024 3:25 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Edit cell IN xBrowse for nEditType EDIT_GET_BUTTON
- Replies: 5
- Views: 566
Re: Edit cell IN xBrowse for nEditType EDIT_GET_BUTTON
1) when the F2 key is pressed the cell is edited even if :bEditWhen is FALSE
Please modify this like this:
case nKey == VK_F2 .and. ::lF2KeyToEdit .and. ! ::lReadOnly
if ! ::lEditMode
WITH OBJECT ::SelectedCol()
if :lEditable //! :lReadOnly
:Edit()
endif
END
endif
Yes, it works perfect ...
Please modify this like this:
case nKey == VK_F2 .and. ::lF2KeyToEdit .and. ! ::lReadOnly
if ! ::lEditMode
WITH OBJECT ::SelectedCol()
if :lEditable //! :lReadOnly
:Edit()
endif
END
endif
Yes, it works perfect ...
- Fri Oct 18, 2024 9:59 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Edit cell IN xBrowse for nEditType EDIT_GET_BUTTON
- Replies: 5
- Views: 566
Re: Edit cell IN xBrowse for nEditType EDIT_GET_BUTTON
1) when the F2 key is pressed the cell is edited even if :bEditWhen is FALSE
Yes. This is a bug in xbrowse.prg, which has been overlooked for many years.
Thanks for pointing this out.
Can you apply this fix in xbrowse.prg and confirm if this working well.
Please locate these lines in METHOD ...
Yes. This is a bug in xbrowse.prg, which has been overlooked for many years.
Thanks for pointing this out.
Can you apply this fix in xbrowse.prg and confirm if this working well.
Please locate these lines in METHOD ...
- Thu Oct 17, 2024 8:51 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Edit cell IN xBrowse for nEditType EDIT_GET_BUTTON
- Replies: 5
- Views: 566
Edit cell IN xBrowse for nEditType EDIT_GET_BUTTON
... bEditWhen := { || empty(field->CODPRD) }
END
:CreateFromCode()
END
...
1) when the F2 key is pressed the cell is edited even if :bEditWhen is FALSE
2) Is it posible to trigger the :bEditBlock when F2 is pressed and only when the cell is editable ?
3) Is it possible to show the bitmap in a ...
END
:CreateFromCode()
END
...
1) when the F2 key is pressed the cell is edited even if :bEditWhen is FALSE
2) Is it posible to trigger the :bEditBlock when F2 is pressed and only when the cell is editable ?
3) Is it possible to show the bitmap in a ...
- Wed Sep 25, 2024 8:54 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: slowness
- Replies: 76
- Views: 11993
Re: slowness
Ok, keep us updated.MarcoBoschi wrote:Today I hope to try again the enable Set-SmbServerConfiguration -EnableOplocks $false
- Wed Sep 25, 2024 8:42 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: slowness
- Replies: 76
- Views: 11993
Re: slowness
... are very interesting but the problem is well explained in this post. As Enrico has always done, he created a minimalist example with which the problem is evident.
I have tried this in different situations. Today I hope to try again the enable Set-SmbServerConfiguration -EnableOplocks $false
I have tried this in different situations. Today I hope to try again the enable Set-SmbServerConfiguration -EnableOplocks $false
- Mon Sep 23, 2024 7:17 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: TSBROWSE - TSBUTTON 64 bits
- Replies: 2
- Views: 480
Re: TSBROWSE - TSBUTTON 64 bits
... conversion from string literal to 'LPSTR'
(aka 'char *') [-Wwritable-strings]
cDrawBoxes( hDC, &rct, 12, "", 0, 0, 0, RGB( 255, 212, 142 ), 0, FALSE, 0 ) ;
^
..\SOURCE\FUNCTION\BPAINT.C:172:43: warning: ISO C++11 does not allow conversion from string literal to 'LPSTR'
(aka 'char ...
(aka 'char *') [-Wwritable-strings]
cDrawBoxes( hDC, &rct, 12, "", 0, 0, 0, RGB( 255, 212, 142 ), 0, FALSE, 0 ) ;
^
..\SOURCE\FUNCTION\BPAINT.C:172:43: warning: ISO C++11 does not allow conversion from string literal to 'LPSTR'
(aka 'char ...
- Sun Sep 15, 2024 9:44 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: slowness
- Replies: 76
- Views: 11993
Re: slowness
... index * $header['recordLength']);
fseek($fileHandle, $recordOffset);
$record = fread($fileHandle, $header['recordLength']);
if ($record === false) {
if ($loggingEnabled) {
error_log("Error reading record at index $index");
}
return null;
}
$result = [];
$fieldOffset = 1; // Skipping ...
fseek($fileHandle, $recordOffset);
$record = fread($fileHandle, $header['recordLength']);
if ($record === false) {
if ($loggingEnabled) {
error_log("Error reading record at index $index");
}
return null;
}
$result = [];
$fieldOffset = 1; // Skipping ...
- Tue Sep 03, 2024 4:02 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: FWH2404 TGet lPassword problem - solved
- Replies: 2
- Views: 901
Re: FWH2404 TGet lPassword problem
I have a GET(in .RC password=yes) in a dialog, where in ON INIT, i change password=false.
Example:
(this code worked in the old version of fivewin 16.8 )
define dialog oDialog resource 'TECLADO' //(in .RC password=yes)
redefine get oTexto var cTexto id 4020 of oDialog picture '@!k' color when .f ...
Example:
(this code worked in the old version of fivewin 16.8 )
define dialog oDialog resource 'TECLADO' //(in .RC password=yes)
redefine get oTexto var cTexto id 4020 of oDialog picture '@!k' color when .f ...
- Fri Aug 30, 2024 1:19 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: FWH2404 TGet lPassword problem - solved
- Replies: 2
- Views: 901
FWH2404 TGet lPassword problem - solved
I have a GET(in .RC password=yes) in a dialog, where in ON INIT, i change password=false.
Example:
(this code worked in the old version of fivewin 16.8 )
define dialog oDialog resource 'TECLADO' //(in .RC password=yes)
redefine get oTexto var cTexto id 4020 of oDialog picture '@!k' color when .f ...
Example:
(this code worked in the old version of fivewin 16.8 )
define dialog oDialog resource 'TECLADO' //(in .RC password=yes)
redefine get oTexto var cTexto id 4020 of oDialog picture '@!k' color when .f ...
- Wed Aug 28, 2024 6:47 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Problema raro en la validación (SOLUCIONADO)
- Replies: 2
- Views: 876
Problema raro en la validación (SOLUCIONADO)
... aGets3[01]:SETFOCUS()
RETURN(.F.)
ENDIF
RETURN(.T.)
La validación es solo para saber si el archivo/fichero existe, si no existe devuelve FALSE o
TRUE si ya existe.
El problema es que cuando devuelve FALSE se queda en un LOOP, regresa al GET y vuelve a ir
a la validación, regresa al GET y ...
RETURN(.F.)
ENDIF
RETURN(.T.)
La validación es solo para saber si el archivo/fichero existe, si no existe devuelve FALSE o
TRUE si ya existe.
El problema es que cuando devuelve FALSE se queda en un LOOP, regresa al GET y vuelve a ir
a la validación, regresa al GET y ...