Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

ObjectHasInterface

  • Last UpdatedFeb 28, 2024
  • 1 minute read

Queries the ActiveX component to determine if its specific interface is supported. (Refer to the ActiveX object's documentation for details of its interfaces.)

Syntax

OBJECT ObjectHasInterface(hObject, sInterface)

hObject:

The handle for the object (as returned by the ObjectByName function).

sInterface:

The name of the interface (case sensitive).

Return Value

0 if the interface is not supported, otherwise 1.

ObjectByName, CreateObject, CreateControlObject

Example

hPen = _ObjectGetProperty(hControl, "Pen");

IF ObjectHasInterface(hPen, "IDigitalPen") THEN

//Fill is only supported on digital pen

_ObjectSetProperty(hPen, "Fill", 0)

END

See Also

ActiveX Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in