ASP Keys طريقة

تعريف والاستخدام

Keys طريقة تعود بمجموعة تحتوي على جميع المفاتيح في Dictionary.

قواعد النحو:

DictionaryObject.Keys

مثال

<%
dim d,a,i
set d=Server.CreateObject("Scripting.Dictionary")
d.Add ",", "China"
d.Add ",", "Italy"
d.Add ",", "Sweden"
Response.Write("<p>Key values:</p>")
a=d.Keys
for i=0 to d.Count-1
  Response.Write(a(i))
  Response.Write("
") next set d=nothing %>

输出:

Key values:
c
i
s