FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Rowset failure
Posts: 115
Joined: Wed Oct 26, 2005 02:38 PM
Rowset failure
Posted: Wed Mar 17, 2021 07:04 PM
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?
Christiano Augusto Silveira
christiano.silveira@gmail.com

MaxxTech Soluções em TI
http://www.maxxtech.com.br
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Rowset failure
Posted: Thu Mar 18, 2021 04:24 AM
Please try
Code (fw): Select all Collapse
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
Posts: 115
Joined: Wed Oct 26, 2005 02:38 PM
Re: Rowset failure
Posted: Thu Mar 18, 2021 02:32 PM
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:

Code (fw): Select all Collapse
    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

Continue the discussion