RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSet.SparseArrays Property

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

Pascal
property SparseArrays: Boolean;
C++
__property Boolean SparseArrays;

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!