Datasnap.DBClient.TCustomClientDataSet.LoadFromFile

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Datasnap.DBClient.pas
Datasnap.DBClient.hpp
Unit: Datasnap.DBClient
Parent: TCustomClientDataSet

Delphi

procedure LoadFromFile(const FileName: string = '');

C++

void __fastcall LoadFromFile(const System::UnicodeString FileName = System::UnicodeString());

Description

Loads a client dataset's data from a file.

Call LoadFromFile to populate the Data property of the client dataset with data stored in an external file. FileName is the name of the file containing the data to load. If the FileName parameter is an empty string, or if this parameter is omitted (Delphi), LoadFromFile reads from the file specified by the FileName property.

To load data from a file at design time, right-click the client dataset and choose 'Load from File'.

Note: FileName must contain data saved to a file by a previous call to this or another client dataset's SaveToFile method, or by a TXMLTransform component.

See Also


Code Examples