The put_Item method stores an initialized VARIANT at the specified array index. If an item is already stored at the specified index, that item is overwritten.
HRESULT put_Item(
longnIndex,// in
VARIANTvarNew// in
);
<commerce.h>
The put_Item method returns one of the following values.
Value | Meaning |
---|---|
S_OK | The method succeeded. |
DISP_E_BADINDEX | The nIndex parameter references an out-of-range value. This means that nIndex contains a value either larger than the SimpleList or less than zero. |