Connect Method
Connects two object's properties together including connecting to an external data source. Once the connection is successfully made, changes in the source's data are automatically transferred to the connected property. Use Connect to make animation connections to data source tags. Connect supports expressions as the definition of a source.
Syntax
object.Connect bstrPropertyName, bstrSource, iStatus, [fTolerance], [iFlags], [fDeadband], [fUpdateRate]
Properties
The Connect method syntax has the following parts:
Part |
Description |
object |
An object expression that evaluates to an object in the Applies To list. |
bstrPropertyName |
String. The name of the object's property to animate. |
bstrSource |
String. The data source reference definition. |
iStatus |
Long. Returns the error value. |
fTolerance |
Variant. (Optional) Used to evaluate the definition of equal in an expression. |
Iflags |
Variant. (Optional) Reserved. |
fdeadband |
Variant. (Optional) Used to determine how much the source needs to change before the exception is transferred to the connected property. |
fUpdateRate |
Variant. (Optional) The requested maximum update rate for this connection in seconds. This property is used as a hint to the data system for a poll rate to the OPC server. |