ASP Key Property
❮ ပြီးပြည့်စုံသော Dictionary Object ရည်ညွှန်းချက်
သော့ပိုင်ဆိုင်မှုသည် Dictionary အရာဝတ္ထုတစ်ခုရှိ ရှိပြီးသားသော့တန်ဖိုးအတွက် သော့တန်ဖိုးအသစ်ကို သတ်မှတ်ပေးသည်။
အထားအသို
DictionaryObject.Key(key)=newkey
Parameter | Description |
---|---|
key | Required. The name of the key that will be changed |
newkey | Required. The new name of 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"
d.Key("re")="r"
Response.Write("The value of key r is: " & d.Item("r"))
%>
Output:
The value of key r is: Red
❮ ပြီးပြည့်စုံသော Dictionary Object ရည်ညွှန်းချက်