RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TNamedVariantsList.Insert Method

Inserts a name/Variant pair at a specified position.

Pascal
procedure Insert(Index: Integer; const S: string; const AValue: Variant); override;
C++
virtual __fastcall Insert(int Index, const AnsiString S, const Variant AValue);

Call Insert to add a name/Variant pair to the list at a specified position. After a call to Insert, any name/Variant pairs that appeared at or after the specified position move down by one (getting a new index). 

Index is the position where the new name and Variant should be added. 

S is the name of the new entry. 

AValue is the Variant value of the new entry. 

 

Values 

Append 

Add 

Delete 

Count

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!