RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWideStrings.Insert Method

Introduces abstract (Delphi) or pure virtual (C++) method to insert a string at a specified position.

Pascal
procedure Insert(Index: Integer; const S: WideString); virtual; abstract;
C++
virtual __fastcall Insert(int Index, const BSTR S) = 0;

Descendants of TWideStrings implement an Insert method to add the string S to the list at the position specified by Index. If Index is 0, the string is inserted at the beginning of the list. If Index is 1, the string is put in the second position of the list, and so on. 

All methods that add strings to the list use the Insert method to add the string. 

If the string has an associated object, use the InsertObject method instead. 

 

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