ASP Keys နည်းလမ်း
❮ ပြီးပြည့်စုံသော Dictionary Object ရည်ညွှန်းချက်
Keys method သည် Dictionary object တစ်ခုရှိ သော့များအားလုံး၏ array တစ်ခုကို ပြန်ပေးသည်။
အထားအသို
DictionaryObject.Keys
ဥပမာ
<%
dim d,a,i
set d=Server.CreateObject("Scripting.Dictionary")
d.Add "n","Norway"
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
set d=nothing
%>
Output:
Key values:
n
i
s
❮ ပြီးပြည့်စုံသော Dictionary Object ရည်ညွှန်းချက်