Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Retrieves the language that the current script is written in.
Syntax
HRESULT get_language( BSTR *p );
Parameters
- p
- Address of a variable that receives the language. Can be one of these values:
JScript Specifies that the script is written in JScript (compatible with ECMA 262 language specification). Jscript Specifies the language is JScript (compatible with ECMA 262 language specification). vbs Specifies the language is VBScript. vbscript Specifies that the script is written in VBScript.
Return Value
Returns S_OK if successful, or an error value otherwise.
See Also
put_language
Sets the language that the current script is written in.
Syntax
HRESULT put_language( BSTR v );
Parameters
- v
- String specifying the language. Can be one of the following values;
JScript Specifies that the script is written in JScript (compatible with ECMA 262 language specification). Jscript Specifies the language is JScript (compatible with ECMA 262 language specification). vbs Specifies the language is VBScript. vbscript Specifies that the script is written in VBScript.
Return Value
Returns S_OK if successful, or an error value otherwise.
See Also
get_language, IHTMLElement
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.