CreateObject

The CreateObject method creates an instance of a server component.

Syntax

Server.CreateObject( progID )

 

Parameters
progID
Specifies the type of object to create. The format for progID is [Vendor.]Component[.Version].
Remarks

By default, objects created by the Server.CreateObject method have content file scope. This means that they are automatically destroyed by the server when it finishes processing the current content file.

Example
<% Set MyChart = Server.CreateObject("SuperChart.Pie") %>
 

The preceding example creates a server component, MyChart, as a SuperChart.Pie component that can be used to render a pie chart within an html content.

Applies To

Server Object



©2001-2015 eMill. All trademarks property of their owners.