Subject Re: [IBO] Inheriting event
Author Geoff Worboys
> How do I inherit the OnAfterPost event in a custom
> component? The SysDataChanged and SysStateChanged seem
> to be there automatically. I have tried just including
> the IBA_Dataset.INT file with a compiler directive,
> but that didn't work....

The events you are using come from the datalink, it gets its event
information broadcast from the DataSource, which gets its info from
the dataset. So the short answer is that you cannot get OnAfterPost

The best I can come up with, is to track things using StateChanged.
Keep an internal property LastState. Whenever you get a statechanged
event, check whether the LastState was dssEdit or dssInsert - if so
then the dataset was either posted or cancelled.

I would also query why you need OnAfterPost. I thought you should be
able to get everything you need as a result on DataChanged events.

Geoff Worboys
Telesis Computing