2.2.6.9.6 DhtmlControl::GetScript


Version

Minimum Origin Version Required: Origin 2017 SR0

Description

Gets an script engine interface.

Syntax

Object GetScript( )

Parameters

Return

Object

Examples

#include <Control.h>
// m_dhtml is a member of your dialog class
DhtmlControl m_dhtml;

void TestGetScript()
{
	Object js;
	js = m_dhtml.GetScript();
	if (!js)
		return;
	// calls the javascript function
	int nReturn = js.MyJavascriptFunction(1024, "hello");
	printf("nReturn=%d\r\n", nReturn);
}

Remark

Note: there is NO guarantee that the returned object is valid, caller should always check its validity before using it.

See Also

Header to Included

Control.h