CreateConnection
Creates a connection between the two supplied datapoints (DatapointFrom and DatapointTo). It will fail to do so if:
•the DatapointFrom is not an output-side datapoint,
•or the DatapointTo is not an input-side datapoint,
•or a connection between these two datapoints already exists.
Signature
CreateConnection(in DatapointFrom as Datapoint, in DatapointTo as Datapoint) -> Connection |
Parameters
Name | Type | Description |
---|---|---|
DatapointFrom | Datapoint | The datapoint from which the connection is to be created. |
DatapointTo | Datapoint | The destination datapoint. |
Errors
Error code | Description |
---|---|
1200 | The object is no longer valid. |
1201 | Invalid address for the return parameter was specified. |
1240 | Changing the document not allowed. It is read-only. |
1241 | Failed creating the connection. |