RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TNamedVariantsList.Put Method

Stores a name/Variant pair at a specified position in the list.

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

Put provides the underlying implementation of all methods that change the information stored in the named Variants list based on item position. For example, the property write methods for the Names and Variants properties both call Put to assign new values to items in the list. 

Index is the index of the name and Variant to write. 

AName is the name to store at the specified position. 

AValue is the Variant value to store at the specified position. 

TAbstractNamedVariants declares Put as an abstract or (in C++ terminology) a pure virtual method, meaning that it provides no implementation. Descendant classes must override this method to provide an implementation. 

 

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