AdsDisconnectEx
Closes a fixed connection between a Visual Basic variable and a data item from an ADS device.
object.AdsDisconnectEx(hConnectAs Long) As Long
Parameter
hConnect
[in] Handle of the connection between the Visual Basic variable and 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 AdsDisconnectEx() 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 AdsReadVarConnectEx() method.