System.Variant.Exec

From RAD Studio API Documentation
Jump to: navigation, search

C++

Variant __fastcall Exec(AutoCmd& cmd, Integer lcid = LOCALE_SYSTEM_DEFAULT) const;

Properties

Type Visibility Source Unit Parent
function public sysvari.h System Variant

Description

Executes an OLE procedure, function, or a property Get or Set method.

Use Exec to call Automation methods.

The cmd parameter is the wrapper class for the method on an interface that is assigned as the value of the Variant. Use this parameter to identify the method you want to call and to assign any parameter values.

The lcid parameter is ignored by Variant. The locale identifier used to interpret parameters is always LOCALE_SYSTEM_DEFAULT.

See Also


Code Examples