Indicates whether a transaction is in progress.
property InTransaction: Boolean;
__property Boolean InTransaction;
Read InTransaction at runtime to determine whether a transaction is currently active for the ADO connection component. If the connection component is currently in a transaction, InTransaction contains a true value. If no transaction is currently active it contains false.
A transaction is will be active if the BeginTrans method has been called to initiate a transaction but that transaction has not either been consummated by calling CommitTrans or canceled by calling the RollbackTrans method. Use the InTransaction property to prevent calling BeginTrans when a transaction has already been initiated for the connection component.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!