The CML application uses various ways to instantiate objects, including the HTML <OBJECT> tag, the CreateObject method of the ASP Server object, and the New keyword in Microsoft Visual Basic. Using New when declaring the object variable enables implicit creation of an object. This means that a new instance of the object is not created until the first reference to it, so you don't have to use the Set statement to assign the object reference. The following declaration is from the MakeRequest method of the CML application's User object:
Dim tq As New TableQueue
Using New is the only choice because the TableQueue object's class is private. Private classes are not registered, and the CreateObject method, for example, works only for registered objects. (The CML application's MTSEnvironment class is private as well, and should likewise be instantiated with the New keyword.)