RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System::Variant::OlePropertyGet

Returns the value of a property on a COM interface.

System::Variant::OlePropertyGet is a wrapper for calling Exec(). System::Variant::OlePropertyGet returns a property value on the interface that is the System::Variant::Variant object's value. 

name is the name of the property whose value is returned. Note that this parameter's value may be different for localized versions of the Automation server. As a result, it is a good idea to use a string resource for this value if the application is intended for multiple locales. 

args is a TAutoArgsBase object that contains the parameter values for the property's read access method. Typically, this is an instance of TAutoArgs. The args parameter can be omitted if the access method has no parameters.  

As an alternate syntax, there is a templatized version that can be called with up to 10 arguments, where the template parameters specify the types of each argument.

Note: Do not use COM features in cross-platform applications. COM is only available under Windows.
 

 

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