RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWideStringList.InsertObject Method

Inserts a string into the list at the specified position, and associates it with an object.

Pascal
procedure InsertObject(Index: Integer; const S: WideString; AObject: TObject); override;
C++
virtual __fastcall InsertObject(int Index, const BSTR S, TObject * AObject);

Call InsertObject to insert the string S into the list at the position identified by Index, and associate it with the object AObject. 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. 

 

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