GetIDLVariable

The GetIDLVariable method retrieves a named variable from the IDL process containing the underlying IDL object.

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

Syntax

HRESULT GetIDLVariable([in] BSTR bstrVar, [out,retval] VARIANT* Value)

Parameters

bstrVar

A string containing the name of the variable to retrieve from the IDL process.

Return Value

The variable's values. If the variable is an array, the array is always converted from IDL majority to the standard COM SAFEARRAY majority ordering.

Examples

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