Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - SAX2 Reference

addAttributeFromIndex Method

Adds an attribute, whose value is equal to the indexed attribute in the input attributes object, to the end of the list.

[Visual Basic]

Implementation Syntax

Sub addAttributeFromIndex(ByVal varAtts, ByVal nIndex As Long)

Usage Syntax

oIMXAttributes.addAttributeFromIndex(varAtts, nIndex)
[C/C++]

Syntax

HRESULT addAttributeFromIndex(
    [in] VARIANT varAtts,
    [in] int nIndex);

Return Values

S_OK
The value returned if no errors are reported.
E_FAIL
The value returned if index is out of range.

Parameters

varAtts
The variant type.
nIndex
The attribute's index value.

To view reference material for Visual Basic or C++ only, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

Applies to: IMXAttributes Interface