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