当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP RemoveAll 方法

ASP
ASP Drive
ASP File
ASP Folder
ASP Dictionary
ASP ADO
ASP AdRotator
ASP BrowserCap
ASP Content Linking
ASP Content Rotator
ASP Quick Ref
ASP 摘要
ASP 实例

ASP RemoveAll 方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 339 ::
收藏到网摘: n/a

The Remove method removes all the key/item pairs from a Dictionary object.
ASP Remove的作用是从字典中删除所有的关键词/元素组对(key/item pair)

Syntax
语法

DictionaryObject.RemoveAll

Example
举例

<%
dim d,a,i
set d=Server.CreateObject("Scripting.Dictionary")
d.Add "n","Norway"
d.Add "i","Italy"
d.Add "s","Sweden"
d.RemoveAll
Response.Write("<p>Key values:</p>")
a=d.Keys
for i=0 to d.Count-1
Response.Write(a(i))
Response.Write("<br />")
next
set d=nothing
%>

Output:

Key values:
(nothing)

评论 (0) All

登陆 | 还没注册?