RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStringBuilder.Insert Method (Integer, Boolean)

Inserts a string representation of the object parameter at the Index provided.

Pascal
function Insert(Index: Integer; const Value: Boolean): TStringBuilder; overload;
function Insert(Index: Integer; const Value: Byte): TStringBuilder; overload;
function Insert(Index: Integer; const Value: Char): TStringBuilder; overload;
function Insert(Index: Integer; const Value: Currency): TStringBuilder; overload;
function Insert(Index: Integer; const Value: Double): TStringBuilder; overload;
function Insert(Index: Integer; const Value: Smallint): TStringBuilder; overload;
function Insert(Index: Integer; const Value: Integer): TStringBuilder; overload;
function Insert(Index: Integer; const Value: TCharArray): TStringBuilder; overload;
function Insert(Index: Integer; const Value: Int64): TStringBuilder; overload;
function Insert(Index: Integer; const Value: TObject): TStringBuilder; overload;
function Insert(Index: Integer; const Value: Shortint): TStringBuilder; overload;
function Insert(Index: Integer; const Value: Single): TStringBuilder; overload;
function Insert(Index: Integer; const Value: string): TStringBuilder; overload;
function Insert(Index: Integer; const Value: Word): TStringBuilder; overload;
function Insert(Index: Integer; const Value: Cardinal): TStringBuilder; overload;
function Insert(Index: Integer; const Value: UInt64): TStringBuilder; overload;
function Insert(Index: Integer; const Value: string; count: Integer): TStringBuilder; overload;
function Insert(Index: Integer; const Value: TCharArray; startIndex: Integer; charCount: Integer): TStringBuilder; overload;
C++
__fastcall TStringBuilder Insert(int Index, const Boolean Value);
__fastcall TStringBuilder Insert(int Index, const Byte Value);
__fastcall TStringBuilder Insert(int Index, const Char Value);
__fastcall TStringBuilder Insert(int Index, const Currency Value);
__fastcall TStringBuilder Insert(int Index, const Double Value);
__fastcall TStringBuilder Insert(int Index, const Smallint Value);
__fastcall TStringBuilder Insert(int Index, const int Value);
__fastcall TStringBuilder Insert(int Index, const TCharArray Value);
__fastcall TStringBuilder Insert(int Index, const Int64 Value);
__fastcall TStringBuilder Insert(int Index, const TObject * Value);
__fastcall TStringBuilder Insert(int Index, const Shortint Value);
__fastcall TStringBuilder Insert(int Index, const Single Value);
__fastcall TStringBuilder Insert(int Index, const AnsiString Value);
__fastcall TStringBuilder Insert(int Index, const Word Value);
__fastcall TStringBuilder Insert(int Index, const unsigned Value);
__fastcall TStringBuilder Insert(int Index, const UInt64 Value);
__fastcall TStringBuilder Insert(int Index, const AnsiString Value, int count);
__fastcall TStringBuilder Insert(int Index, const TCharArray Value, int startIndex, int charCount);

Use Insert to insert a string representation of the object parameter at the Index provided.  

In the overload that uses the parameter count, count provides a way to insert the object count number of times.  

startIndex and charCount provide a way to insert a substring of the Value TCharArray into the character array of this instance. 

 

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