TdxMemData Class
A memory-based dataset component.
Declaration
TdxMemData = class(
TdxCustomMemData
)
Remarks
A memory-based dataset component is designed as a temporary data storage for data-aware VCL controls. The Memory Data component contains built-in dialogs that allow you to create dataset fields and populate them with data.
Main API Members
The list below outlines key members of the TdxCustomMemData
class that allows you to populate a memory-based dataset and manage data at runtime.
- Generate dataset fields from a specified source (CreateFieldsFromBinaryFile, CreateFieldsFromDataSet, and CreateFieldsFromStream).
- Populate the memory-based dataset from different sources (LoadFromDataSet, LoadFromBinaryFile, LoadFromStream, LoadFromStrings, and LoadFromTextFile).
- Identify if the memory-based dataset contains records (IsEmpty).
- Obtain the number of stored dataset records (RecordCount).
- Associate the memory-based dataset with a data source component (DataSource).
- Specify if the memory-based dataset is available for associated data-aware controls (Active).
- Copy data and structure from another dataset (CopyFromDataSet).
- Access dataset fields stored in memory (Data).
- Navigate between dataset records (First, Last, Next, and Prior).
- Identify if the dataset is positioned at the first or last record (Bof and Eof).
- Sort data against one or more dataset fields (SortedFields and SortOptions).
- Avoid excessive redraw operations in bound data-aware controls during batch dataset changes (DisableControls and EnableControls).
- Move the active record (MoveCurRecordTo).
- Customize the component’s DFM-related content persistence settings (Persistent).
- Protect content from changes (ReadOnly).
- Change the column delimiter character for text-based files that store exported data (DelimiterChar).
- Save data to a file or stream (SaveToBinaryFile, SaveToStream, SaveToStrings, and SaveToTextFile).
Inheritance
See Also