System.Variant.OlePropertyGet

From RAD Studio API Documentation
Jump to: navigation, search

C++

Variant OlePropertyGet(const String& name, TAutoArgsBase* args = 0);
Variant Variant::OlePropertyGet(const String& name, P1 p1)
Variant Variant::OlePropertyGet(const String& name, P1 p1, P2 p2)
Variant Variant::OlePropertyGet(const String& name, P1 p1, P2 p2, P3 p3)
Variant Variant::OlePropertyGet(const String& name, P1 p1, P2 p2, P3 p3, P4 p4)
Variant Variant::OlePropertyGet(const String& name, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5)
Variant Variant::OlePropertyGet(const String& name,
  P1 p1, P2 p2, P3 p3, P4 p4, P5 p5,
  P6 p6)
Variant Variant::OlePropertyGet(const String& name,
  P1 p1, P2 p2, P3 p3, P4 p4, P5 p5,
  P6 p6, P7 p7)
Variant Variant::OlePropertyGet(const String& name,
  P1 p1, P2 p2, P3 p3, P4 p4, P5 p5,
  P6 p6, P7 p7, P8 p8)
Variant Variant::OlePropertyGet(const String& name,
  P1 p1, P2 p2, P3 p3, P4 p4, P5 p5,
  P6 p6, P7 p7, P8 p8, P9 p9)
Variant Variant::OlePropertyGet(const String& name,
  P1 p1, P2 p2, P3 p3, P4 p4, P5 p5,
  P6 p6, P7 p7, P8 p8, P9 p9, P10 p10)

Properties

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

Description

Returns the value of a property on a COM interface.

OlePropertyGet is a wrapper used to call Exec(). OlePropertyGet returns a property value on the interface that is the 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.

See Also