Subject | Re: [IBO] Problem using TIB_Query |
---|---|
Author | Jason Wharton |
Post date | 2003-08-22T15:24:05Z |
> i recently converted our applications from Delphi 4 to Delphi 7.My answer to this problem is let the users know it isn't a good idea to
> On a few forms i have a problem with TIB_Query.
> There is a update bar connected to the query and the problem is that if
> you click the insert of the updatebar fast after a few times i get
> errors because some fields that must have values do not have values.
> The query has beforepost, afterpost , beforeinsert and afterinsert
> events.
> The fields get their default values in the after insert event which
> works fine, except when you insert very fast.
>
> So it seems like the inserting from the updatebar happends even when the
> previous insert has not finished doing all the events yet..
> I have the same when i do a append myself from a button.
> Any ideas?
click the update bar fast.
Calling Insert when in insert state will attempt to post the current insert
in order to start a new one.
Jason Wharton