ASP Count ÊôÐÔ
¶¨ÒåºÍÓ÷¨
Count ÊôÐÔ·µ»ØÔÚ Dictionary ¶ÔÏóÖÐ key/item ¶ÔµÄÊýÄ¿¡£
Óï·¨£º
DictionaryObject.Count
ʵÀý
<%
dim d
set d=Server.CreateObject("Scripting.Dictionary")
d.Add "c","China"
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