The Conroy & Conroy Subroutine Library (2021.3 edition)

TCOM_Dynamic_Properties
What: Class
Ancestor: TCommon_COM_Interface
File: _Propert
Layer: 0
Platforms: C++, Javascript, Pascal (All), PHP, Python

This class is the abstract base class for COM dynamic propertoes. The methods in this class use the stdcall calling convention. The class contains the following methods:

Add
int32 Add( char* Nam, TCOM_Generic_Value *Value )
function Add( Nam : PChar ; Value : TCOM_Generic_Value ) : longint
Adds a new property, returning the index. Returns -1 if a property already exists by that name.

Clear
void Clear()
procedure Clear
Deletes all properties.

Count
int32 Count()
function Count : longint
Returns the count of defined properties.

Get_Name
char* Get_Name( int32 Index )
function Get_Name( Index : longint ) : PChar
Retrieves string name of property with given index. If index is invalid, returns a null string.

Get_Value
TCOM_Generic_Value* Get_Value( int32 Index )
function Get_Value( Index : longint ) : TCOM_Generic_Value
Gets the value for the specified index. Returns nil if the index is invalid.

Index_Of
int32 Index_Of( char* Nam )
function Index_Of( Nam : PChar ) : longint
Returns the index of the property with the specified name. Returns -1 if the named property doesn't exist.

Set_Value
void Set_Value( int32 Index, TCOM_Generic_Value* Value )
procedure Set_Value( Index : longint ; Value : TCOM_Generic_Value )
Sets the value for the specified index.