Αναφορές ADO BeginTransComplete, CommitTransComplete και RollbackTransComplete γεγονότων
Ορισμός και χρήση
Τα γεγονότα είναι υποδικασίες που καλείται αυτόματα μετά από την εκτέλεση μιας συγκεκριμένης λειτουργίας.
- Το γεγονός BeginTransComplete ενεργοποιείται όταν ο κλήρος BeginTrans ολοκληρωθεί.
- Το γεγονός CommitTransComplete ενεργοποιείται όταν ο κλήρος CommitTrans ολοκληρωθεί.
- Το γεγονός RollbackTransComplete ενεργοποιείται όταν ο κλήρος RollbackTrans ολοκληρωθεί.
συμβολογραφία
BeginTransComplete translevel,objerror,status,objconn CommitTransComplete objerror,status,objconn RollbackTransComplete objerror,status,objconn
παράμετρος | Description |
---|---|
translevel | Long Value, containing the new transaction level of the BeginTrans that triggered this event. |
objerror |
The Error Object that contains the errors that occurred. Note:EventStatusEnum The value must be set to adStatusErrorsOccurred to create an Error Object. |
status | Specify the status of the event execution. Take EventStatusEnum Status Value. |
objconn | The Connection Object that triggered this event. |
EventStatusEnum Value
Constant | Value | Description |
---|---|---|
adStatusOK | 1 | The operation that triggered this event was successful. |
adStatusErrorsOccurred | 2 | The operation that triggered this event failed. |
adStatusCantDeny | 3 | Cannot cancel suspended operations. |
adStatusCancel | 4 | Cancel the operation that caused the event. |
adStatusUnwantedEvent | 5 | Prevent subsequent notifications before the event method execution ends. |