Subject Re: [IBO] Post v/s PostRetaining
Author Geoff Worboys
> So my question is how to tell the difference between
> Post and PostRetaining in OnBeforePost event. Does IBO
> expose some internal flag?

TIB_Dataset.IsPostRetaining is a dynamic flag set while a post is in
progress. The flag is set prior to calling OnBeforePost and reset
again when the post process is complete.

If you wish to see if a record has been PostRetained check the
HasPostRetained flag - this is only set after the Post process is
performed, so it is not good in the OnBeforePost process - unless you
are looking to see if this is a post of a previous PostRetained
record. The flag should only ever be set in a record that otherwise
appears to be in insert mode.

Geoff Worboys
Telesis Computing