Icon InTransaction Property

property InTransaction: Boolean


Use the InTransaction property at run-time to determine if a transaction is currently in progress. The InTransaction property is True if a transaction is in progress and False if a transaction is not in progress.

The value of the InTransaction property cannot be changed directly. Calling the TDBISAMDatabase StartTransaction sets the InTransaction property to True. Calling the TDBISAMDatabase Commit or Rollback methods sets the InTransaction property to False.

Information If the current TDBISAMDatabase component is sharing its internal handle with another TDBISAMDatabase component, then calling StartTransaction on one component will also cause the other component's InTransaction property to reflect True. The same holds true for two TDBISAMDatabase components that refer to the same local or remote database since DBISAM never allocates more than one internal handle for a given database.