Data.Win.ADODB.TCustomADODataSet.LoadFromFile
| [–] Properties | |
|---|---|
| Type:  procedure function 
 | |
| Visibility: public | |
| Source:  Data.Win.ADODB.pas Data.Win.ADODB.hpp 
 | |
| Unit: Data.Win.ADODB | |
| Parent: TCustomADODataSet | |
Delphi
procedure LoadFromFile(const FileName: WideString);
C++
void __fastcall LoadFromFile(const System::WideString FileName);
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.