RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomSQLDataSet.PSInTransaction Method

Indicates whether actions against the dataset occur in the context of a transaction.

Pascal
function PSInTransaction: Boolean; override;
C++
virtual __fastcall Boolean PSInTransaction();

The provider component applies updates within a transaction, if possible. To do so, it first checks whether a transaction is already underway, and if not, generates one using PSStartTransaction. To determine whether a transaction is already underway, the provider calls PSInTransaction.  

PSInTransaction returns true if there is a transaction underway, and false otherwise. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!