ASP Keys పద్ధతి
నిర్వచనం మరియు వినియోగం
Keys పద్ధతి డిక్షనరీ ఆబ్జెక్ట్ లోని అన్ని కీలను కలిగిన ప్రతిమాణాన్ని తిరిగిస్తుంది.
సింహావకాశం:
DictionaryObject.Keys
ప్రతిస్పందన
<% 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("
") next set d=nothing %>
输出:
Key values: c i s