Subject Re: D. Bertin's ISC errors was Re: [IBO] loosing records Help
Author Helen Borrie (TeamIBO)
At 10:10 AM 10-01-02 -0800, you wrote:

>could you suggest a way of making this code (especially this procedure) not
>so horrendous code.

I have several suggestions. I hacked it around for some time last night local time before heading for bed; and will send it through to you privately this morning when I've added some initial alternative suggestions for doing this task.

>should I start by putting this into a try/except block or add a IBOdatabase
>component to my datamodule?

Both. But the way your code is at present, you don't really have any very suitable code blocks to catch all of the expected exceptions at the right time, let alone the unexpected ones...

For others who might be a little bemused by exception handling in Delphi, I'm working on a Tech Info sheet on the subject, complete with a little sample project full of ghastly exceptions, for which the TI sheet will show you ways to handle them...

Emailing you a little later, Daniel.

Helen Borrie (TeamIBO Support)

** Please don't email your support questions privately **
Ask on the list and everyone benefits
Don't forget the IB Objects online FAQ - link from any page at