DelphiFAQ Home Search:

Obtaining more information about BDE Errors


comments7 comments. Current rating: 4 stars (3 votes). Leave comments and/ or rate it.

When working with the Borland Database Engine (BDE) you've probably seen exceptions raised by the BDE.


  • 'Key violation'
  • 'Table does not exist'
The raised exception EDBEngineError is a subclass of the Exception class, one with additional functionality not provided in the base class.

Specifically, EDBEngineError errors are lists of other error messages. You can enumerate the error messages and display them as additional information when problems occur, as shown in the following example.

program BDE_Error_Demo;

  sMsg: String;
  i   : integer;

// Uses the EDBEngineError's ErrorCount() method to enumerate all errors 
// on BDE's stack of messages. They are collected in a string and displayed. 
  // something prone to errors.. 

    on e : EDBEngineError do 
        sMsg := 'BDE Error Details:' + #13#10#13#10; 
        for i := 0 to ErrorCount - 1 do 
          sMsg := strErrors + '(' + IntToStr(Errors[i].ErrorCode) + 
                  ') ' + Errors[i].Message + #13#10 
        end; { for i }

        Application.MessageBox(PChar(sMsg), 'Error', MB_ICONHAND + MB_OK) 
  end; { try } 

Content-type: text/html


2006-08-28, 09:14:07
anonymous from United States  
The code should be using E.ErrorCount and E.Errors[I].
2007-10-02, 12:05:15
anonymous from Mexico  
youre wrong
2007-10-22, 14:03:20
anonymous from United States  
What exactly does the following BDE error mean?

11108 2B64 Not exact read/write

Thanks in advance
2008-01-10, 14:00:46
anonymous from United States  
Thanks much.

BTW anon from Mexico is wrong. The code should be using E.ErrorCount & E.Errors.
2012-06-05, 21:34:17
anonymous from China  
<strong> http://www.coachout..strong> <a href=' http://www.coachout..g>Coach Outlet Online</strong></a><br />
<strong> http://www.coachfac..strong> <a href=' http://www.coachfac..g>Coach Factory</strong></a><br />
<strong> http://www.myloveco..strong> <a href=' http://www.myloveco..g>Coach Outlet Online</strong></a><br />
<strong> http://www.buyincoa..strong> <a href=' http://www.buyincoa..g>Coach Outlet</strong></a><br />
<strong> http://www.cheapcoa..strong> <a href=' http://www.cheapcoa..g>Cheap Coach Handbags</strong></a><br />
<strong> http://www.coachfac..strong> <a href=' http://www.coachfac..g>Coach Factory Outlet</strong></a><br />
<strong> http://www.buycoach..strong> <a href=' http://www.buycoach..g>Coach Outlet Online</strong></a><br />
<strong></strong> <a href=' http://www.coachout..g>Coach Factory Outlet</strong></a><br />
<strong></strong> <a href=' http://www.coachout..g>Coach Outlet Online</strong></a><br />
<strong></strong> <a href=' http://www.coachfac..g>Coach Factory</strong></a><br />
<strong></strong> <a href=' http://www.gotocoac..g>Coach Outlet Online</strong></a><br />
2012-11-12, 05:10:58
coach001 from United States  
2013-03-03, 23:18:53
pmftdeil <a href=' '>cheap viagra</a> >:-OOO <a href=' '></a> >:-[



NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: