Re: Handling Open Exception




You spelled Exception wrong so it isn't correct code that you posted.
So either the real code is different enough to be incorrect or there is an error
being generated by record_transfer_error_sp.execProc


Yes (first thing I checked <g>)

On Mon, 20 Nov 2006 10:20:09 -0500, "Steve Zimmelman"
<skz@xxxxxxxxxxxxxxxxxx> wrote:

Does the error display when you run the exe outside of the Delphi IDE?

-Steve-

<craig Butler> wrote in message
news:34g3m2p26aka9venmh8jfeid3jfu7gfknc@xxxxxxxxxx
I'm trying to handle an exception that results from 'bad' data in a
table. The code is as follows:

try
get_taxes_qry.open;
except
on E : Exceptiion do begin
record_transfer_error_sp.execProc
end;
end;

Get_taxes_qry is an adodataset and I'm using D7.

Currently when the open fails the except clause is executed and the
execproc is executed. However,the system also displays an error
message which I need to suppress.

Can someone tell me how to suppress the display?

Thanks

Craig


--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.