FireDAC.Comp.DataSet.TFDDataSet.LoadFromFileAtOpen

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
FireDAC.Comp.DataSet.pas
FireDAC.Comp.DataSet.hpp
Unit: FireDAC.Comp.DataSet
Parent: TFDDataSet

Delphi

function LoadFromFileAtOpen: Boolean;

C++

bool __fastcall LoadFromFileAtOpen();

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