1.

How Can You Destroy An Object In Vbscript?

Answer»

In order to destroy the objects, we need to use Set Keyword followed by the OBJECT NAME and point it to Nothing.

EXAMPLE:

DIM obj
Set obj = CreateObject("Scripting.Dictionary")
Set obj = Nothing

In order to destroy the objects, we need to use Set Keyword followed by the object name and point it to Nothing.

Example:

Dim obj
Set obj = CreateObject("Scripting.Dictionary")
Set obj = Nothing



Discussion

No Comment Found