OLE_ReleaseObject() Function
- Last UpdatedFeb 20, 2017
- 1 minute read
After you have used an OLE object in a script, you can release it and delete its pointer to free up system resources. After you release an OLE object you cannot use its pointer to access properties and methods of the associated OLE class.
Syntax
OLE_ReleaseObject(%pointer);
Arguments
%pointer
Name of the pointer that references the OLE Object. It can contain alphanumeric characters (A-Z, 0-9) and underscore. It is case-insensitive.
Example(s)
This script releases the OLE object associated with the pointer %WShell and deletes the pointer %WShell.
OLE_ReleaseObject(%WShell);