FireDAC.Comp.Client.TFDCustomConnection.Online

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
Unit: FireDAC.Comp.Client
Parent: TFDCustomConnection

Delphi

procedure Online;

C++

void __fastcall Online();

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>';

See Also