Subject Re: [IBO] Preventing a field from being updated
Author Marc Leclerc
Hi,

This is not the final code but just something put together for simplicity. I
have more to do in there including the option to delete the details and
allow the change.

> Marc,
>
> I don't see that you raised an exception in your code (Showing a message
> isn't raising an exception). Have you tried to do so?
>

<Delphi snip>
Abort raises a special "silent exception" (EAbort), which operates like any
other exception, but does not display an error message to the end user
<>
> And don't use RecordCount; there are better ways to check if records
> exists.
>
> You can use:
>
> if ( NOT IB_QueryContributions.IsEmpty )
> or:
> if ( NOT IB_QueryContributions.FieldbyName('PrimaryKeyField').IsNull )
>
... not IB_QueryContributions.Eof also
> instead.
>
> Luc.
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>