IPrimaryMsAccessSPLD.FileName

Syntax

FileName: String;

Description

The FileName property determines a path and a name of the MS Access database file that contains a file repository.

Comments

The interface is outdated. It was relevant in previous versions of Prognoz Platform.

Example

Sub Main;

Var

MbMan: IMetabaseManager;

MbDefs: IMetabaseDefinitions;

MbDef: IMetabaseDefinition;

AccessSPLD: IPrimaryMsAccessSPLD;

Begin

MbMan := MetabaseManagerFactory.Active;

MbDefs := MbMan.Definitions;

MbDef := MbDefs.Add;

MbDef.DriverId := "OLEDB";

MbDef.Id := "Test_Access";

MbDef.Name := "Test_Access";

MbDef.SecurityPackage := "STANDARDSECURITYPACKAGE";

AccessSPLD := MbDef.LogonData As IPrimaryMsAccessSPLD;

AccessSPLD.FileName := "c:\Test.mdb";

MbDef.Save;

End Sub Main;

After executing the example, a new description of the file repository will be created. Connection will be performed to the MS Access database file c:\Test.mdb.

See also:

IPrimaryMsAccessSPLD