Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 546
 
12-26
Cisco ICM Software CTI OS Developer’s Guide Release 6.0(0)
 
Chapter 12      Helper Classes
Arguments Class
RemoveItem
The RemoveItem method removes a value and its associated key from an 
arguments array. Subsequent attempts to access a value that was removed using 
RemoveItem will fail.
Syntax
C++:
bool RemoveItem( std::string& key );
bool RemoveItem( char * key );
bool RemoveItem( enum_Keywords key );
COM:
HRESULT RemoveItem(/*[in]*/ VARIANT* key, /*[out, retval]*/ 
VARIANT_BOOL* bSuccess);
VB: 
RemoveItem ( key as Variant) as Boolean
Java:
boolean RemoveItem(int key)
boolean RemoveItem(String key)
Parameters
key
The key to use to locate and remove the item in the Arguments array. Leading 
and trailing spaces are always removed from the key.
Return Values
A True return value means the entry was located and removed.
SetElement
The SetElement method is identical to SetValue (which is similar to AddItem), 
except that it uses an index value instead of a key. 
Syntax
C++:
bool SetElement( int index, int value );
bool SetElement( int index, unsigned int value );
bool SetElement( int index, unsigned short value );
bool SetElement( int index, short value );