Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











METHOD:  Application.Contents.Remove

Implemented in version 3.0

Application.Contents.Remove (Name|Integer)

The Contents.Remove method is used to delete one specified item in the Application.Contents collection.

You may use only one of the two possible choices for the mandatory argument.

Name or Integer

The Name argument is the name of the item to be deleted. It must be enclosed in a pair of quotes.

The Integer argument is the position number of the item in the collection to be deleted. The numbering sequence for a collection starts at one, not zero.

Code:
<%
Application("name") = "Application Maker"
Application("publishdate") = "05/15/01"
Application("author") = "DevGuru"
Set Application("Obj1") = Server.CreateObject("ADODB.Connection")

Application.Contents.Remove(1)
Application.Contents.Remove("publishdate")


For Each Item in Application.Contents
    If IsObject(Application.Contents(Item)) Then
      Response.Write Item & " is an object.<BR>"
    Else
      Response.Write Item & "=" &Application.Contents(Item) & "<BR>"
    End If
Next
%>

 
Output:
author=DevGuru
Obj1 is an object.
 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information