Key
ASP Key xususiyati
❮ Dictionary obyektining to‘liq ma’lumotnomasi
Key xususiyati Dictionary obyektidagi mavjud kalit qiymati uchun yangi kalit qiymatini belgilaydi.
Sintaksis
DictionaryObject.Key(key)=newkey
| Parametr | Tavsif |
|---|---|
| key | Majburiy. O‘zgartiriladigan kalitning nomi |
| newkey | Majburiy. Kalitning yangi nomi |
Misol
<%
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 obyektining to‘liq ma’lumotnomasi
W3Schools Pathfinder
Yutuqlaringizni kuzating – bu bepul!
