Page 1 of 1

translation lock message

Posted: Tue 15 Sep 2009 09:53
by cvitoria
Hi,

How to trap and/or translate the lock message ?

Thanks

Carlos

Posted: Wed 16 Sep 2009 12:37
by Plash
You can use the OnError event of TUniConnection to process the error.

The error for a locked record may have different error code and text for different DBMS. To know that an exception is a lock error, you need to compare the error code or message of the exception to some values specific for each provider.

Then you can assign another value to the Message property of an exception.