SetIDLVariable

The SetIDLVariable method sets the specified variable name to the specified value in the IDL process containing the underlying IDL object. If the value is a SAFEARRAY, it is always converted from the standard COM SAFEARRAY majority ordering to IDL majority.

Note
This method is disabled for applications running in the IDL Virtual Machine.

Syntax

HRESULT SetIDLVariable([in] BSTR bstrVar, [in] VARIANT Value)

Parameters

bstrVar

A string identifying the variable in the IDL process to be set to Value.

Value

The value for the variable.

Examples

See Data Manipulation with a COM Connector Object for an array manipulation example that uses the GetIDLVariable, SetIDLVariable and ExecuteString methods.