ASP Add Method
❮ ပြီးပြည့်စုံသော Dictionary Object ရည်ညွှန်းချက်
Add method သည် Dictionary object တစ်ခုသို့ သော့/ပစ္စည်းတွဲအသစ်တစ်ခုကို ပေါင်းထည့်သည်။
အထားအသို
DictionaryObject.Add(key,item)
Parameter | Description |
---|---|
key | Required. The key value associated with the item |
item | Required. The item 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 gr is: " & d.Item("gr"))
%>
Output:
The value of key gr is: Green
❮ ပြီးပြည့်စုံသော Dictionary Object ရည်ညွှန်းချက်