FireDAC.Comp.Client.TFDCustomConnection.Online
Delphi
procedure Online;
C++
void __fastcall Online();
Contents
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | TFDCustomConnection |
Description
Sets the connection to online mode.
The Online method opens the connection to the DBMS by implicitly setting the Connected to True and changing the state to online.
To bring the connection and associated datasets to the offline state, call the Offline method.
Calling the Online method is the same as setting Offlined to False.
Example
FDConnection1.Online;
lblState.Caption := '<connected>';