Link to home
Start Free TrialLog in
Avatar of s_arb
s_arb

asked on

Deactivating BDE Error Messages

Hi
Ā  I want to handle database errors by TRY..Except
Command.I do that, but i get BDE error messages too.
1-How can i disable this messages?
2-How can i get database Error Codes in order to
understand whitch error has been happened(something
like VB Err object)

Thanks
ASKER CERTIFIED SOLUTION
Avatar of z_darius
z_darius

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of s_arb
s_arb

ASKER

I have written that code,but i get error messages even
when i run it from outside of Delphi.
Hi,
Delphi IDE error messages can be ignored! Select 'Tools-Debugger Options' from main menu. Go to the 'Language exceptions' page and uncheck 'Stop on Delphi Exceptions'. Press 'OK' button. That's all.

Regards, Geo
Maybe the BDE functions will help?

DbiGetErrorContext(eContext, szContext)
DbiGetErrorEntry(uEntry, pulNativeError, szError)
DbiGetErrorString(bFull, pErrInfo)