Sun
ONE Active Server Pages Product Home Page Developer Site Version
 

ContentsPreviousNextIndex



Example: ASP Application Object Contents.Remove Method

The following code includes members of the Application.Contents collection:

<%
Set Application("objFso") = Server.CreateObject("Scripting.FileSystemObject")
Application("strHello") = "Hello"
Application("Start_Time") = CStr(Now)
%>

The following code removes the second item in the collection ("strHello") using an integer.

<%
Application.Contents.Remove(2)
%>

The following code removes the second item in the collection ("strHello") using the variable name.

<%
Application.Contents.Remove("strHello")
%>


ContentsPreviousNextIndex