RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System::AutoCmd

System::AutoCmd represents a command that can be executed by an Automation interface wrapped by a Variant class.

The System::AutoCmd class is a friend class to Variant. It represents a single method on an Automation interface that is assigned as the value of a Variant.  

Do not use instances of System::AutoCmd, which includes pure virtual methods. Instead, use the System::AutoCmd descendant that represents the type of the desired method. These descendants are 

PropertyGet, for methods that return a property value. 

PropertySet, for methods that set a property value. 

Procedure, for methods that do not return a value. 

Function, for methods that do return a value. 

Each System::AutoCmd instance is assigned a name, which is the same as the name of the corresponding method on the interface. In addition, it can be assigned parameters that correspond to the parameters of the method. These parameters can be stored by position or by name.  

Once you have assigned parameter values to the System::AutoCmd object, you can execute it using the Variant::Exec method. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!