Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Where is "EDB_ERROR_LOCK" defined?
Wed, May 30 2018 5:08 PMPermanent Link

Ian Branch

Avatar

Hi Team,
I have the following piece of code..
{code}
 if (E is EDatabaseError) and (E is EEDBError) then
 begin
   if (EEDBError(E).ErrorCode = EDB_ERROR_LOCK) then
   begin
 ..
 ..
{code}
Lifted straight from the manual.

The "EDB_ERROR_LOCK" isn't recognised.  I have edbconsts, edbcomps & edbtype in the uses.

I did a search of the .pas & .dfm files in the EDB install directory and didn't find it.

Regards,
Ian
Wed, May 30 2018 6:05 PMPermanent Link

Steve Gill

Avatar

Hi Ian,

<< The "EDB_ERROR_LOCK" isn't recognised.  I have edbconsts, edbcomps & edbtype in the uses. >>

You'll need to add edberror to your Uses clause.

= Steve
Wed, May 30 2018 6:25 PMPermanent Link

Ian Branch

Avatar

Steve Gill wrote:

>> You'll need to add edberror to your Uses clause.

Cheers.  Tks Steve.
Image