Skip to main content

VCL Memory Data

  • 2 minutes to read

VCL Memory Data is a memory-based dataset designed as a temporary storage for data-aware VCL controls. The following screenshot shows the component’s design-time data editor:

VCL Memory Data

Populate a Dataset with Data

Built-in Dialogs

You can use the Field Editor dialog to manage fields in the Memory Data component. Double-click the component or click “Field Editor” in its context menu to invoke the dialog.

The Field Editor Dialog

A click on the Add button invokes the New Field dialog that allows you to create a new dataset field from scratch.

The New Field Dialog

You should specify the following data for a new field:

  • Field Name
  • Type
  • Size (for string fields only)
  • Lookup definition (for lookup fields only)

Once you create all fields, populate them with data. Click Persistent Editor in the component’s context menu to open the dialog.

Click the last data record and enter values in the required format (string, integer, date, or other). Press the Down Arrow key to add a new record as shown below.

Add a Data Record

Click OK to apply changes to your dataset. Note that all pending changes are discarded if you close the dialog or click Cancel.

Persistent Editor

You can use the component’s Persistent Editor dialog to manage data in your dataset.

The Persistent Editor Dialog

You can perform the following actions:

  • Add dataset records.
  • Load fields from a text or binary file.
  • Populate the loaded fields with data. Use the same file to load fields and their data. Otherwise, the component replaces the previously loaded fields with fields from a newly selected file.
  • Save a dataset to a file.
  • Accept all changes applied to your dataset. A click on OK also creates a field component for each field.
  • Clear the dataset.

Sort Data

You can sort data records against any number of dataset fields in ascending or descending order. Refer to the following property descriptions for more information:

Filter Data

The Memory Data component allows you to create filter conditions, enable filters, and customize filter options.

You can also do the following to filter dataset content:

See Also