FireDAC.Comp.DataSet.TFDDataSet.SaveToFileAtClose
Delphi
function SaveToFileAtClose: Boolean;
C++
bool __fastcall SaveToFileAtClose(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 saved to file at closing.
Call the SaveFileAtClose method to see whether the dataset saves its data to the external file at closing. To automatically save content to the data file, the following conditions must be met:
- The dataset must be not nested.
- ResourceOptions.Persistent must be True.
- Resolved ResourceOptions.PersistentFileName must not be empty.
- The file does not exist or the dataset was changed since the last saving, opening, or loading of data from the file.