AdsWrite[Datatype]Disconnect

AdsWriteBoolDisconnect

AdsWriteIntegerDisconnect

AdsWriteLongDisconnect

AdsWriteSingleDisconnect

AdsWriteDoubleDisconnect

Ends a fixed connection between a Visual Basic variable of type boolean, integer, long, single or double and a data item from an ADS device.

object.AdsWrite[Datatype]Disconnect(pData As [Datatype]) 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 AdsWrite[Datatype]Disconnect() 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

-