setValue Method1

 

Sets the value of a specific attribute.

Visual Basic Implementation Syntax

Sub setValue(ByVal nIndex As Long, ByVal strValue As String)  

Visual Basic Usage Syntax

oIMXAttributes.setValue
(nIndex, strValue)  

C/C++ Syntax

HRESULT setValue(  
    [in] int nIndex,   
    [in] BSTR strValue);  

Return Values

S_OK
The value returned if no errors are reported.

E_FAIL
There is only one specific fatal error for this IMXAttributes implementation: incorrect index (E_INVALIDARG). It may return a generic failure code, such as out-of-memory.

Parameters

nIndex
The attribute's index value.

strValue
A string representing the attribute default value specified by "#IMPLIED", "#REQUIRED", or "#FIXED", or Null if none applies. This value string is represented by the attribute's default value, or Null if there is none.

Versioning

Implemented in: MSXML 3.0 and later

Applies to

IMXAttributes Interface