Click to return to the Reusing Browser Technology home page    
IHTMLStyle2::removeExpres...     IHTMLStyleElement Interfa...     IHTMLStyle2 Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLStyle2::setExpression Method


Sets an expression for an element object.

Syntax

HRESULT setExpression(
    BSTR sPropertyName,
    BSTR sExpression,
    BSTR sLanguage
    );

Parameters

sPropertyName
String (BSTR) that specifies the name of the attribute to which sExpression will be added.
sExpression
String (BSTR) that specifies any legal script. This string can include references to other properties on the current page. Array references are not allowed on object properties included in this script.
sLanguage
String (BSTR) that specifies the type of language. The language can be Microsoft® JScript® (compatible with ECMA 262 language specification) or Microsoft® Visual Basic® (VBScript).

Return Value

Returns S_OK if successful, or an error code otherwise.

See Also

getExpression, removeExpression



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.