tutorial pengembangan web terbaru
 

ASP Count Property


<Complete Referensi Obyek Kamus

Properti Count mengembalikan jumlah pasangan kunci / item dalam objek Dictionary.

Sintaksis

DictionaryObject.Count

Contoh

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

<Complete Referensi Obyek Kamus