Construct Method

Creates an external data source object (tag reference). It displays the QuickAdd user interface that prompts the user for the information needed to create the tag.

Syntax

object.Construct bstrObjectName, iStatus

Properties

The Construct method syntax has the following parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

bstrObjectName

String. The fully qualified data source reference. For example, Fix32.SCADA1.AI1

iStatus

Long. Returns the error value.
 

Return values are:
0 – OK
1 – Syntax error
2 – Data Undefined
3 – Data type mismatch

 

Example

Applies To