In a previous Tip of the Day I wrote, I advocated object creations using the
Another benefit of this approach is that, for the scope of the page, a valid object is always present. Therefore, errors like “object doesn’t exist” are not encountered. Also, because all the object tags are at the top of the page, you very easily can open an ASP page and immediately find out which objects are being used in the page.
The syntax is:
Remember that ASP will not let you set an object that you created with the object tag equal to nothing.