__import

Method of IScriptApplication

Description

Dynamically import file into global scope.

Parameters

Return Value

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