FireDAC.Comp.Client.TFDManager.ConnectionDefFileName
Delphi
property ConnectionDefFileName: string read GetConnectionDefFileName write SetConnectionDefFileName default 0;
C++
__property ConnectionDefFileName = {default=0};
Contents
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | TFDManager |
Description
Gets or sets the name of a connection definition file.
FireDAC.Comp.Client.TFDManager.ConnectionDefFileName inherits from FireDAC.Comp.Client.TFDCustomManager.ConnectionDefFileName. All content below this line refers to FireDAC.Comp.Client.TFDCustomManager.ConnectionDefFileName.
Gets or sets the name of a connection definition file.
The ConnectionDefFileName property allows you to get or set the name of a connection definition file.
The application can set the name before the connection definitions file is loaded, for example, in the BeforeLoadConnectionDefFile event handler.
If a path is a relative one or contains template markers, it will be expanded into full path. Use ActualConnectionDefFileName to get the expanded value.
A path can include path variables.
Example
FDManager.ConnectionDefFileName := ExtractFilePath(Application.ExeName) + 'myconndef.ini';
FDManager.ConnectionDefFileAutoLoad := True;
oConn := TFDConnection.Create(nil);
oConn.ConnectionDefName := 'myconn';
oConn.Connected := True;