The OnDelete event notifies the client when a transaction has been deleted from the transaction stack.
Name | Type | Description |
TransactionObject | Transaction | The Transaction object just deleted. When the BeforeOrAfter argument is kAfter the actual Transaction has been deleted and the Transaction object provided is not functional except to have it's identify compared with a previously saved reference to a Transaction object. For example: Private m_oSavedTransaction As Transaction Private Sub oTransActionEvents_OnCommit( ByVal TransactionObject As Transaction, ...) If BeforeOrAfter = kAfter Then ' Somehow determine this is an interesting transaction. If Interesting(TransactionObject) Then ' Save a reference to the object. Set m_oSavedTransaction = TransactionObject End If End If End Sub Private Sub oTransActionEvents_OnDelete( ByVal TransactionObject As Transaction, ...) If BeforeOrAfter = kAfter Then ' Check to see if this is the interesting transaction being deleted. If TransactionObject is m_oSavedTransaction Then ' The transaction was deleted. End If End If End Sub |
Context | NameValueMap | Input object that can be used to determine the context of why the event fired. No context information is provided for this event. |
BeforeOrAfter | EventTimingEnum | Input indicating when the event is being fired. Notification is sent only after the transaction is deleted. |