RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStringBuilder.Create Constructor ()

Allocates memory and constructs a safely initialized instance of a TStringBuilder.

Pascal
constructor Create; overload;
constructor Create(aCapacity: Integer); overload;
constructor Create(const Value: string); overload;
constructor Create(aCapacity: Integer; aMaxCapacity: Integer); overload;
constructor Create(const Value: string; aCapacity: Integer); overload;
constructor Create(const Value: string; StartIndex: Integer; Length: Integer; aCapacity: Integer); overload;
C++
__fastcall TStringBuilder();
__fastcall TStringBuilder(int aCapacity);
__fastcall TStringBuilder(const AnsiString Value);
__fastcall TStringBuilder(int aCapacity, int aMaxCapacity);
__fastcall TStringBuilder(const AnsiString Value, int aCapacity);
__fastcall TStringBuilder(const AnsiString Value, int StartIndex, int Length, int aCapacity);

Use Create to Create an instance of the TStringBuilder class. 

aCapacity specifies the initial value of the Capacity property, the maximum number of characters this TStringBuilder instance can hold. The value of the Capacity property can be changed. 

Value specifies the initial character array to be stored in this TStringBuilder instance. 

aMaxCapacity is the maximum value that the Capacity property can be for this instance of the TStringBuilder class. 

StartIndex specifies the index of the first character in the Value string to be copied into the initial character array of this TStringBuilder instance. 

Length is the number of characters to copy from the Value string into the initial character array of this TStringBuilder instance. 

 

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