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?
Rowset failure
Rowset failure
Christiano Augusto Silveira
christiano.silveira@gmail.com
MaxxTech Soluções em TI
http://www.maxxtech.com.br
christiano.silveira@gmail.com
MaxxTech Soluções em TI
http://www.maxxtech.com.br
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
Re: Rowset failure
Please try
But we advise it is not desirable to suppress such messages.
If the user sees this message, he will check his internet and cables. If he does not see this message, he will not know why the program is not functioning or malfunctioning.
Even you will post that program stopped functioning and neither you know or we know why the program stopped functioning/malfunctioning because we do not know the connection is broken.
We consider this message is important.
Anyway, the final decision is yours.
Code: Select all | Expand
oCn:lSilent := .t.
But we advise it is not desirable to suppress such messages.
If the user sees this message, he will check his internet and cables. If he does not see this message, he will not know why the program is not functioning or malfunctioning.
Even you will post that program stopped functioning and neither you know or we know why the program stopped functioning/malfunctioning because we do not know the connection is broken.
We consider this message is important.
Anyway, the final decision is yours.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: Rowset failure
Hello Rao
You are right, so is there any possibility of capturing the message and treating it my way?
For example how do I make the initial connection using:
You are right, so is there any possibility of capturing the message and treating it my way?
For example how do I make the initial connection using:
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
Christiano Augusto Silveira
christiano.silveira@gmail.com
MaxxTech Soluções em TI
http://www.maxxtech.com.br
christiano.silveira@gmail.com
MaxxTech Soluções em TI
http://www.maxxtech.com.br