Data.DB.TDataSet.SparseArrays

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: public
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TDataSet

Delphi

property SparseArrays: Boolean read FSparseArrays write SetSparseArrays;

C++

__property bool SparseArrays = {read=FSparseArrays, write=SetSparseArrays, nodefault};

Description

Determines whether a unique TField object is created for each element of an array field.

When opening a dataset with an array field, SparseArrays determines whether a unique field component is created for each element of the array field. The default is false, where a TField descendant is created for each element of the array field. If you plan to bind data-aware controls to elements of the array field, SparseArrays must be set to false. Setting SparseArrays to true conserves memory, but does not allow applications to reference individual elements of the array field.

See Also