RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Variant::Exec Method

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

Pascal
function Exec(var cmd: AutoCmd; lcid: Integer = LOCALE_SYSTEM_DEFAULT): Variant;
C++
__fastcall Variant Exec(AutoCmd& cmd, Integer lcid = LOCALE_SYSTEM_DEFAULT) const;

Use System::Variant::Exec to call Automation methods.  

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

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

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!