ASP RemoveAll 方法
❮ 完整 Dictionary 物件參考
Remove 方法可從 Dictionary 物件中移除所有鍵/項對。
語法
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("<p>鍵值:</p>")
a=d.Keys
for i=0 to d.Count-1
Response.Write(a(i))
Response.Write("<br>")
next
set d=nothing
%>
輸出
鍵值
(無)
❮ 完整 Dictionary 物件參考