欢迎您 本站地址:  
返回首页   返回编程教学   小红书副业  男生头像帅气  聊天室类源码  周朝历史  魏书  学习React  学习Rust  学习CMake 

ASP RemoveAll 方法


Dictionary 对象参考手册 完整的 Dictionary 对象参考手册

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("<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
%>

输出:

Key values:

(nothing)


Dictionary 对象参考手册 完整的 Dictionary 对象参考手册
小库提示

扫描下方二维码,访问手机版。