<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > Data types and variables > iDispatch variables > Nothing |
Description
It is always necessary to release an iDispatch variable if it is referencing to an object. To do so assign Nothing to the iDispatch variable.
This destroys an iDispatch variable, discontinuing its association with a specific object.
This in turn releases all system and memory resources associated with the object when no more object variables refer to it.
Syntax
iDispatchVariable = Nothing
Returns
Parameters
Name |
Type |
Optional |
Meaning |
Remarks
Restrictions
See also
iDispatch, NewCom, GetCom, AnyCom, Nothing, IsComObject, IsComNothing.
Examples