AdsReadDisconnect
Closes a fixed connection between a Visual Basic variable and a data item from an ADS device.
object.AdsReadDisconnect(pData As Variant) As Long
Parameter
pData
[in] Visual Basic variable into which the data is written from the ADS variable
Return value
See ADS error codes
Comments
If the connection to an ADS variable is no longer required, it should be closed using the AdsReadDisconnect() method. If only certain specific values are required in a form, the connection should only be created when the form is loaded, and should be released again when the form is closed. See also the AdsReadConnect() method.
Example
-