TdxCustomMemData.Persistent Property
Provides access to record storage settings and related methods.
#Declaration
property Persistent: TdxMemPersistent read; write;
#Property Value
Type | Description |
---|---|
Tdx |
Contains record storage settings in a memory-based dataset. |
#Remarks
In addition to data import and export functionality, the TdxMemData component can store data in a DFM file.
You can use the Persistent
.Option property to switch between available automatic data load modes. Refer to the TdxMemPersistent class description for detailed information on all available options.
#Code Example: Delete All Records
The following code example deletes all records stored in a memory-based dataset:
if dxMemData1.Persistent.Option = poActive then
dxMemData1.Persistent.Option := poNone;
dxMemData1.Close;
dxMemData1.Open;