当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP Count 属性

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 Count 属性


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

The Count property returns the number of key/item pairs in the Dictionary object.
ASP Count属性返回的是字典对象中关键词/元素组对(key/item pair)的数量。

Syntax
语法

DictionaryObject.Count

Example
举例

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

Output:

The number of key/item pairs: 3

评论 (0) All

登陆 | 还没注册?