ASP Keys Metodu
Tanım ve Kullanım
Keys yöntemi, Dictionary nesnesinde bulunan tüm anahtarları içeren bir dizgi döndürür.
Grady:
DictionaryObject.Keys
Örnek
<% dim d,a,i set d=Server.CreateObject("Scripting.Dictionary") d.Add "c","China" d.Add "i","Italy" d.Add "s","Sweden" Response.Write("<p>Key values:</p>") a=d.Keys for i=0 to d.Count-1 Response.Write(a(i)) Response.Write("<br />") next d=nothing set %>
Çıktı:
Anahtar değerleri: c i s