SetSize Array

BOOL SetSize(
int nNewSize, 
int nGrowBy = -1);

Parameters

nNewSize

New array size. The elements are destroyed or constructed appropriately.

nGrowSize

New grow size. This value is ignored if it is less than zero.

Return Code

TRUE if successful or FALSE if insufficient memory.

Comments

Sets the new size for the array and, optionally, a new grow size.