RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TNamedVariantsList.Get Method

Retrieves the name and Variant stored at a specified position in the list.

Pascal
function Get(Index: Integer; out AName: string; out AValue: Variant): Boolean; override;
C++
virtual __fastcall Boolean Get(int Index, AnsiString AName, Variant AValue);

Get provides the underlying implementation of all methods that extract information from the named Variants list based on item position. For example, the property read methods for the Names and Variants properties both call Get to extract the relevant information from the list. 

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

AName returns the name stored at the specified position. 

AValue returns the Variant value stored at the specified position. 

Get returns true if Index is the index of an item in the list, false if there is no name/Variant pair at the specified position. 

TAbstractNamedVariants declares Get 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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!