Count

阅读:14      收藏:0      [点我收藏+]

ASP Count 属性


Count 属性返回在 Dictionary 对象中 key/item 对的数目。

语法

DictionaryObject.Count

实例

<%
dim d
set d=Server.CreateObject("Scripting.Dictionary")
d.Add "n","Norway"
d.Add "i","Italy"
d.Add "s","Sweden"
Response.Write("The number of key/item pairs: " & d.Count)
set d=nothing
%>

输出:

The number of key/item pairs: 3
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!