AdsDeleteVarHandle

Releases the handle of a PLC variable again.

object.AdsDeleteVarHandle(hVar As Long) As Long

Parameter

hVar

[in] Handle of the ADS variable

Return value

See ADS error codes

Comments

If the ADS variable that is referred to by a handle is no longer required, it should be released once more by means of the AdsDeleteVarHandle() method. If only certain specific ADS variables are required in a form, the handle should only be created when the form is loaded, and should be released again when the form is closed. See also the AdsCreateVarHandle() method.

Example

-