Connected
- Last UpdatedNov 17, 2021
- 1 minute read
Use this read-write property to initiate or terminate a connection to the AVEVA Historian and to check whether a connection is currently active.
Syntax
aaHistClientActiveDataGrid.Connected = discrete;
Result = aaHistClientActiveDataGrid.Connected;
Remarks
If set to True, and the ServerName, DatabaseName, UserName, and Password properties are set, the control tries to connect to the AVEVA Historian and execute the SQL statement specified by the SQLString property. If an error occurs, the Connected property is set to False.
If set to False while a connection is active, the control is disconnected from the server and reset.
The default value is False.