|The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....|
|Home BasePack DStruct Class TStringArray Properties AllocRowsBy|
|See also: AddRow, Data structure of TStringArray|
The property AllocRowsBy determines how much memory is allocated when the number of rows is changed. Memory it is allocated in chunks of AllocRowsBy rows. By default, AllocRowsBy is set to 10; it should be increased when many resizing operations are expected (i.e. adding many extra rows later on).
If, for example, AllocRowsBy is set to 20, an integer multiple of 20 rows is allocated. When the size of the string array is increased later on and the remaining allocated free memory is not sufficient, memory for another 20 rows (or an integer multiple of it) is allocated.