Previous in Contents Next in Contents

ISimpleList::put_Item

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.

Syntax

HRESULT put_Item(
longnIndex,// in
VARIANTvarNew// in
);

Parameters

nIndex
The index at which to store the new VARIANT.
varNew
The new VARIANT.

Include File

<commerce.h>

Return Value

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.

Related Topic

ISimpleList::putref_Item


© 1997-2000 Microsoft Corporation. All rights reserved.