The Conroy & Conroy Subroutine Library (2021.3 edition)

TSNamed_Values
What: Class
Ancestor: TCommon_COM_Interface
File: _NameVal
Layer: 0
Platforms: C++, C#, Javascript, Pascal (All), PHP, Python

This class is the abstract base class for COM Named values. The class contains the following methods:

Index_Of
int Index_Of( string Name )
function Index_Of( Name : PAnsiChar ) : integer
Returns the index of the item with the given name. Returns -1 if the name is not found.

Index_Of_Value
int Index_Of_Value( string Value )
function Index_Of_Value( Value : PAnsiChar ) : integer
Returns the index of the first (lowest) occurance of the passed value. If not found, -1 is returned.

Get
string Get( int Index )
function Get( Index : integer ) : PAnsiChar
Returns the value associated with the passed index.

Get_Name
string Get_Name( int Index )
function Get_Name( Index : integer ) : PAnsiChar
Returns the name associated with the passed index.

Put
int Put( int Index, string Value )
function Put( Index : integer ; Value : PAnsiChar ) : integer
Changes the value at the specified index to the specified value.

Put_By_Name
int Put_by_Name( string Name, string Value )
function Put_by_Name( Name, Value : PAnsiChar ) : integer
Changes the value associated with the specified name.

Delete
void Delete( int Index )
procedure Delete( Index : integer )
Deletes the item at the specified index.