Show: Delphi C++
Display Preferences

Data.Win.ADODB.TCustomADODataSet.LoadFromFile

From XE2 API Documentation
Jump to: navigation, search

Delphi

procedure LoadFromFile(const FileName: WideString);

C++

void __fastcall LoadFromFile(const System::WideString FileName);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.Win.ADODB.pas
Data.Win.ADODB.hpp
Data.Win.ADODB TCustomADODataSet

Description

Loads a recordset from a file.

Call LoadFromFile to load the recordset for the calling ADO dataset component from a file. If the loading operation fails, the current recordset is neutralized (set to nil (Delphi) or NULL (C++)), the dataset component remains inactive, and an EOleException exception is raised. If the attempt to load data from a file is successful, the ADO dataset component is automatically activated and the data made available.

FileName is a string containing the name of the file.

LoadFromFile closes the dataset component before loading the recordset from the file specified in FileName.

See Also

Personal tools
Previous Versions
Translations