Data.Win.ADODB.TCustomADODataSet.SetConnectionFlag
Delphi
function SetConnectionFlag(Flag: Integer; Value: Boolean): Boolean; virtual;
C++
virtual bool __fastcall SetConnectionFlag(int Flag, bool Value);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Data.Win.ADODB.pas Data.Win.ADODB.hpp |
Data.Win.ADODB | TCustomADODataSet |
Description
Specifies whether an action is performed on the database.
The SetConnectionFlag method is used internally to specify whether an action is performed on the database. SetConnectionFlag is useful when multiple actions are performed using the same connection. This way, the connection remains open until all the actions are completed. The flags specify the type of action performed.