ASP Item Property
❮ ပြီးပြည့်စုံသော Dictionary Object ရည်ညွှန်းချက်
ပစ္စည်းပိုင်ဆိုင်မှုသည် Dictionary အရာဝတ္ထုတစ်ခုရှိ အရာတစ်ခု၏တန်ဖိုးကို သတ်မှတ်ပေးသည် သို့မဟုတ် ပြန်ပေးသည်။
အထားအသို
DictionaryObject.Item(key)[=newitem]
Parameter | Description |
---|---|
key | Required. The key associated with the item |
newitem | Optional. Specifies the value associated with the key |
ဥပမာ
<%
Dim d
Set d=Server.CreateObject("Scripting.Dictionary")
d.Add "re","Red"
d.Add "gr","Green"
d.Add "bl","Blue"
d.Add "pi","Pink"
Response.Write("The value of key pi is: " & d.Item("pi"))
%>
Output:
The value of key pi is: Pink
❮ ပြီးပြည့်စုံသော Dictionary Object ရည်ညွှန်းချက်