Click to return to the Reusing Browser Technology home page    
IHTMLOptionElement::get_f...     IHTMLOptionElement::get_s...     IHTMLOptionElement Interf...    
Web Workshop  |  Reusing Browser Technology

IHTMLOptionElement::get_index Method


Retrieves the ordinal position of the option in the list box.

Syntax

HRESULT get_index(
    LONG *p 
);

Parameters

p
Address of a long variable that receives the ordinal position. For details, see the index property.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

You can assign a value to this property without generating a syntax error, but the value is not stored.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

IHTMLOptionElement::put_index Method


Sets the ordinal position of the option in the list box.

Syntax

HRESULT put_index(
    LONG v 
);

Parameters

v
Long value that specifies the ordinal position to set. For details, see the index property.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

You can assign a value to this property without generating a syntax error, but the value is not stored.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.