After a disconnect due to inactivity or internet failure, a rowset returns the message:
![Image](http://maxxtech.com.br/forum/error-rowset.jpg)
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?
Code: Select all | Expand
oCn:lSilent := .t.
Code: Select all | Expand
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