EPUB | CHM | PDF

TDataSet.Properties.SparseArrays

Top Previous Next

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

Syntax:

property SparseArrays: Boolean;
Description:

When opening a table or client data set 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 gain a reference to an element of the array field.