__import
Method of IScriptApplication
Description
Dynamically import file into global scope.
Parameters
- BSTR strPath
- VARIANT_BOOL bOnce = VARIANT_FALSE (optional)
Return Value
- VARIANT_BOOL pbSuccess
Syntax
JavaScript
var pbSuccess = ScriptApplication.__import(strPath, bOnce);
==== Visual Basic Script ====
pbSuccess = ScriptApplication.__import strPath, bOnce
==== C++ ====
VARIANT_BOOL bSuccess; HRESULT hr = ScriptApplication.__import(strPath, bOnce, &bSuccess);
===== See Also ===== IScriptApplication