AdsWriteDisconnect

Closes a fixed connection between a Visual Basic variable and the data item in an ADS device.

object.AdsWriteDisconnect(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 the ADS variable is no longer required, it should be released using the AdsWriteDisconnect() 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.

Example

-