System.SysUtils.TStringBuilder.EnsureCapacity

From RAD Studio API Documentation
Revision as of 23:21, 16 October 2011 by PyBot (talk | contribs) (Scoping Libraries)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Delphi

function EnsureCapacity(aCapacity: Integer): Integer;

C++

int __fastcall EnsureCapacity(int aCapacity);

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TStringBuilder

Description

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

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.

See Also