#1 2013-02-17 12:56:19

Niko
Member
Registered: 2013-02-16
Posts: 5

Connection Problem

Hello,

How can we handle a connection problem? When the client is unable to connect to the server we want to show the user a message about it.

I tried:


   try
     (...)
   except
      on E : Exception do
        ShowMessage('.....');
   end;

But it doen'st work.

Thanks for you time...

Last edited by Niko (2013-02-17 12:59:07)

Offline

#2 2013-02-17 13:32:10

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Connection Problem

See how the latest "SQLite3\Sample\16 - Execute SQL via services" code sample do for handling connection or process issues.
http://blog.synopse.info/post/2013/02/1 … SQL-access

It requires the latest 1.18 unstable version to have the whole error handling methods and functions.

Offline

Board footer

Powered by FluxBB