Retrieves the language that the current script is written in.
Syntax
HRESULT get_language( BSTR *p );
Parameters
- p
- Address of a string (BSTR) variable that receives the language. It 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 Visual Basic Scripting Edition (VBScript). vbscript Specifies that the script is written in VBScript.
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
Sets the language that the current script is written in.
Syntax
HRESULT put_language( BSTR v );
Parameters
- v
- String that specifies 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 Visual Basic Scripting Edition (VBScript). vbscript Specifies that the script is written in VBScript.
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