Example <strong> Dim oXML as Object Set oXML = CreateObject("Microsoft.XMLDOM")</strong>
Creates a DOM object.
When you are done using the object, set its reference to nothing
<strong>Set oXML = Nothing</strong>
This will free up the memory
Also, watch yourself on objects. An created object is considered "empty". If you set an object to nothing, it is not empty, but it IS nothing.
Put simply, this code will runtime error if your object was not created.
<strong>If Not Is Nothing Then</strong> 'Check if object has not been created
So a trick I have learned when dealing with objects in VB6 and especially VBScript, is to actually set all your object variables to "nothing" before you even use them. That way they are always non "empty".
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
Programmatically reference an ActiveX dll
Can I programatically make a reference to an ActiveX dll as an alternative to manually doing
Project > reference.