ASP KeyPropiedad
Manual de referencia completo del objeto Dictionary
La propiedad Key establece un nuevo valor para una key existente en el objeto Dictionary.
Sintaxis
DictionaryObject.Key(key)=newkey
| Parámetros | Descripción |
|---|---|
| key | Obligatorio. El nombre de la key que se debe modificar. |
| newkey | Obligatorio. El nuevo nombre de la key. |
Ejemplo
<%
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"))
%>
Salida:
The value of key r is: Red
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"))
%>
Salida:
The value of key r is: Red
Manual de referencia completo del objeto Dictionary Otras extensiones