FireDAC.Comp.Client.TFDCustomSchemaAdapter.LoadFromFile

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure LoadFromFile(const AFileName: String = ''; AFormat: TFDStorageFormat = sfAuto);

C++

void __fastcall LoadFromFile(const System::UnicodeString AFileName = System::UnicodeString(), Firedac::Stan::Intf::TFDStorageFormat AFormat = (Firedac::Stan::Intf::TFDStorageFormat)(0x0));

Properties

Type Visibility Source Unit Parent
procedure
function
public
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDCustomSchemaAdapter

Description

Loads the content of the datasets associated with TFDCustomSchemaAdapter from a file.

Call the LoadFromFile procedure to load the content of the datasets associated with TFDCustomSchemaAdapter from a specific file with a specific format.

AFileName is the name of the file containing the adapter to load. If the file does not exist, an exception is raised.

AFormat is the file format:

  • sfXML: an XML file.
  • sfBinary: a binary file with custom FireDAC format.
  • sfAuto: the format is determined by the AFileName extention: ".XML" - XML file, ".ADB" / ".BIN" / ".DAT"--binary file.

Note: If the AFileName does not have an extension, the format is determined by ResourceOptions.DefaultStoreExt, provided that it is specified. Otherwise, it is determined by ResourceOptions.DefaultStoreFormat.

See Also