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

IHTMLOptionElement::get_selected Method


Retrieves the value that indicates whether this item is the default.

Syntax

HRESULT get_selected(
    VARIANT_BOOL *p 
);

Parameters

p
Address of a VARIANT Boolean structure that receives VARIANT_TRUE if the item is the default, or VARIANT_FALSE if not. For details, see the selected property.

Return Value

Returns S_OK if successful, or an error code otherwise.

Windows CE

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

IHTMLOptionElement::put_selected Method


Sets the value that indicates whether this item is the default.

Syntax

HRESULT put_selected(
    VARIANT_BOOL v 
);

Parameters

v
VARIANT Boolean structure that specifies the selected flag to set. Setting this parameter to VARIANT_TRUE selects the item; setting it to VARIANT_FALSE deselects it. For details, see the selected property.

Return Value

Returns S_OK if successful, or an error code otherwise.

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.