ASP Count 속성

정의와 사용법

Count 속성은 Dictionary 객체에서 key/item 쌍의 수를 반환합니다.

문법:

DictionaryObject.Count

인스턴스

<%
dim d
set d=서버.CreateObject("Scripting.Dictionary")
d.Add "c","중국"
d.Add "i","이탈리아"
d.Add "s","Sweden"
Response.Write("키/항목 쌍의 수: " & d.Count)
set d=nothing
%>

출력:

키/항목 쌍의 수: 3