Subject | Re: [IBO] TIBTable AfterPost error |
---|---|
Author | Nando Dessena |
Post date | 2001-02-03T20:42:38Z |
Jason,
for the TIBO components, so it's there we should find the answer. The
Help says, WRT the AfterPost event:
event and insert or edit during the BeforePost event. Not that I never
wrote code that actually counted on that.
The current case (starting and edit operation in the AfterPost event
handler - and I wonder why) is at risk even with the BDE, since you're
not guaranteed to have a record to edit after the post is made.
behaviour (with components that are expected to be totally compatible)
then he/she was asking for trouble anyway.
In the end, I'd make the change.
Ciao
--
____
_/\/ando
> In my opinion it is understood that the afterpost event is after theyou often say that TDataSet's Help should function as an On Line Help
> information has been posted to the server but that the dataset is still in
> the mode of posting an edit of some kind.
for the TIBO components, so it's there we should find the answer. The
Help says, WRT the AfterPost event:
> Occurs *after* an application writes the active record to the databaseI always thought that the state must be browse during the AfterPost
> or cache [and the dataset] returns to browse state.
event and insert or edit during the BeforePost event. Not that I never
wrote code that actually counted on that.
The current case (starting and edit operation in the AfterPost event
handler - and I wonder why) is at risk even with the BDE, since you're
not guaranteed to have a record to edit after the post is made.
> If I change this to suit his request, how many things do you think we couldI tend to believe that if someone has based his code on nonstandard
> be at risk to negatively impacting. The only thing I can think of is if
> someone is using a generic event handler and they need the IsPosting event
> to distinguish something.
behaviour (with components that are expected to be totally compatible)
then he/she was asking for trouble anyway.
In the end, I'd make the change.
Ciao
--
____
_/\/ando