YouTip LogoYouTip

Met Createobject Server

# ASP CreateObject Method * * Complete Server Object Reference Manual](#) * * * The CreateObject method creates an instance of an object. **Note:** Objects created with this method have page scope. This means that after the current ASP page is processed, the server will automatically destroy these objects. To create objects with session or application scope, you can use the `` tag in the Global.asa file and set the SCOPE attribute to session or application, or you can store the object in a session or application variable. ### Syntax Server.CreateObject(progID) | Parameter | Description | | --- | --- | | progID | Required. The type of object to create. | * * * ### Example 1 This example creates an instance of the server component MSWC.AdRotator: ### Example 2 When a session ends, objects stored in session variables are destroyed. However, you can also destroy an object by setting the variable to Nothing or a new value: Or: ### Example 3 You cannot create an instance of an object with the same name as a built-in object. For example, the following script will return an error: * * Complete Server Object Reference Manual](#)
← Met ExecuteProp Scripttimeout β†’

YouTip © 2024-2026 | Home | Learn Technology, Build Dreams!

All content is for educational and learning purposes only.