Hello friends!
After a disconnect due to inactivity or internet failure, a rowset returns the message:
I have already tried to make an attempt to reconnect and this is ok, I just wish that the error message did not appear, how to do it?
oCn:lSilent := .t.
oServer := MARIA_CONNECT( cServer, cDBName, cUser, cPassword, .F. )
IF oServer == NIL
aERROR := MARIA_CONNECTERROR()
IF aERROR[1]==2003
MAXXPARE("Não foi possivel conectar com o servidor, verifique sua conexão" )
MAXXWAIT( "Encerrando o sistema", , 3 )
QUIT
ELSE
MAXXPARE("Erro desconhecido ao conectar com o servidor, verifique sua conexão" )
MAXXWAIT( "Encerrando o sistema", , 3 )
QUIT
ENDIF
RETURN NIL
ENDIF
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 76 guests