Back to Devexpress

TdxCustomMemData.Persistent Property

vcl-dxmdaset-dot-tdxcustommemdata-55d1b0a6.md

latest1.7 KB
Original Source

TdxCustomMemData.Persistent Property

Provides access to record storage settings and related methods.

Declaration

delphi
property Persistent: TdxMemPersistent read; write;

Property Value

TypeDescription
TdxMemPersistent

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:

delphi
if dxMemData1.Persistent.Option = poActive then
    dxMemData1.Persistent.Option := poNone;
  dxMemData1.Close;
  dxMemData1.Open;
cpp
if(dxMemData1->Persistent->Option == poActive)
    dxMemData1->Persistent->Option = poNone;
  dxMemData1->Close();
  dxMemData1->Open();

See Also

TdxCustomMemData.LoadFromStream Procedure

TdxCustomMemData.SaveToStream Procedure

TdxCustomMemData Class

TdxCustomMemData Members

dxmdaset Unit