FireDAC.Comp.DataSet.TFDDataSet.LoadFromFileAtOpen

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function LoadFromFileAtOpen: Boolean;

C++

bool __fastcall LoadFromFileAtOpen(void);

Properties

Type Visibility Source Unit Parent
function public
FireDAC.Comp.DataSet.pas
FireDAC.Comp.DataSet.hpp
FireDAC.Comp.DataSet TFDDataSet

Description

Returns True if the dataset content is loaded from a file when calling Open.

Use the LoadFromFileAtOpen method to see if the dataset executes the command to get cursor and fetch records (False) or will load its content from the data file (True). To automatically load content from the data file, the following conditions must be met:

The file with the name resolved from ResourceOptions.PersistentFileName must exist.

See Also