__require

Method of IScriptApplication

Access external module (include) without exposing it to global scope.

Return Value

JavaScript

var pModule = ScriptApplication.__require(strPath);

Visual Basic Script

pModule = ScriptApplication.__require strPath

C++

VARIANT Module;
HRESULT hr = ScriptApplication.__require(strPath, &Module);