RegisterVariable

Method of IApplication

Register external variable (vValue can be explict BSTR value or IVariableHandler* callback)

JavaScript

Application.RegisterVariable(strName, vValue);

Visual Basic Script

Application.RegisterVariable strName, vValue

C++

HRESULT hr = Application.RegisterVariable(strName, vValue);