RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TBaseArray.AutoSize Property

Indicates whether the array grows dynamically as items are added.

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

Set AutoSize to true to allow the array to hold an arbitrary number of values. When AutoSize is true, the Capacity property increases automatically when new items are added beyond the current capacity of the array. When AutoSize is false, the Capacity property must be explicitly set to the number of entries allowed in the array. If an attempt is made to add items beyond the number specified in the Capacity property, an EArrayError exception is raised if AutoSize is false. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!