ActiveX and DOM Objects

In ASP, if an ActiveX object is going to be used in a program, first an instance of that object must be created. This is done by first declaring a variable and then assigning an instance of the object to the variable. The general syntax is as follows:

dim [objectName]

set  [objectName]= server.createObject("[string representing object template]")

set is a Visual Basic keyword for instantiating an object. server.createObject() is a method of the server object that will actually create the instance of the object. The string passed as a parameter to createObject() tells ASP what kind of object to create.

After ASP has created the object, it can be filled with the appropriate data. There are numerous objects that can be ...

Get XML Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.