free e- mail
thaimail
hotmail
yahoo
siam2you
thammasat
Home
Visual Basic
Active Server Page
JavaScript
Network
Other
Active Server Pages.
RemoveAll Method
Application Object
All Objects
All Properties
Session.Contents
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 2000 by Infinite Software Solutions, Inc.
Trademark Information
ASP - Link
ASP reference
B
C
D
E
F
G
Last update:
Copyright © 2001.Memo Wil@keo everything that I like Co.,Ltd.