ASP RemoveAll 方法
asp removeall 方法

removeall 方法從 dictionary 對象中刪除所有的 key/item 對。
語法
dictionaryobject.removeall
實例
<%
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("
a=d.keys
for i=0 to d.count-1
response.write(a(i))
response.write("
")
next
set d=nothing
%>
輸出:
key values:
(nothing)
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("
key values:
")a=d.keys
for i=0 to d.count-1
response.write(a(i))
response.write("
")
next
set d=nothing
%>
輸出:
key values:
(nothing)

相關文章
- ASP ASPError 對象
- ASP AdRotator
- ASP Content Rotator
- ASP 快速參考
- ASP Column 屬性
- ASP DateLastAccessed 屬性
- ASP DateLastModified 屬性
- ASP Name 屬性
- ASP ParentFolder 屬性
- ASP Size 屬性
- ASP Type 屬性
- ASP Key 屬性
- ASP Add 方法
- ASP Contents.RemoveAll 方法
- ASP Session_OnStart 和 Session_OnEnd 事件
- ASP Execute 方法
- ASP MapPath 方法
- ASP CopyFile 方法
- ASP GetDriveName 方法
- ASP GetFile 方法