WinStudio

StdObjectDelete Event

Occurs before WinStudio deletes the current object in a collection or subcollection during execution of

The default implementation handles new objects (that is, objects that have not been saved to a SQL Server table) and saved objects differently. WinStudio removes a new object from the collection immediately but marks a saved object as deleted. The marked object will be deleted from the database table when a Save operation is performed.

The default implementation fires the following sequences of standard events:

Saved object

New object

Your application cannot call the default implementation by generating the event.

Remarks

The default implementation is a collection-level operation, which can occur in a collection whether or not the collection is current.

If the default implementation is performed on an object that has been marked as deleted, WinStudio removes the mark and the object will not be deleted when a Save operation is performed.

A StdObjectDeleteExisting or a StdObjectDeleteNew event is fired before each deletion.