__require
Method of IScriptApplication
Description
Access external module (include) without exposing it to global scope.
Parameters
- BSTR strPath
Return Value
- VARIANT pModule
Syntax
JavaScript
var pModule = ScriptApplication.__require(strPath);
==== Visual Basic Script ====
pModule = ScriptApplication.__require strPath
==== C++ ====
VARIANT Module; HRESULT hr = ScriptApplication.__require(strPath, &Module);
===== See Also ===== IScriptApplication