RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStringBuilder.EnsureCapacity Method

Sets the Capacity property to the supplied value, if the new capacity is larger than the old capacity.

Pascal
function EnsureCapacity(aCapacity: Integer): Integer;
C++
__fastcall int EnsureCapacity(int aCapacity);

Sets the Capacity property to the supplied value, if the new capacity is larger than the old capacity. Also allocates more memory for the character array if needed. Returns the new capacity. 

 

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