Ver Mensaje Individual
  #6 (permalink)  
Antiguo 05/12/2008, 08:02
Avatar de David
David
Moderador
 
Fecha de Ingreso: abril-2005
Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 20 años
Puntos: 839
Respuesta: como hago esto en asp ?

Ejemplo:
Código vb:
Ver original
  1. Dim ObjArray
  2. Dim Clave
  3.  
  4. Set ObjArray = Server.CreateObject("Scripting.Dictionary")
  5.  
  6. 'Añadir Valores
  7. ObjArray.Add "Clave", "Valor"
  8. ObjArray.Add "User", "David el Grande"
  9. ObjArray.Add "Location", "Foros del Web"
  10. ObjArray.Add "Otro", "Valor"
  11.  
  12. 'Mostrar valores
  13. Response.Write ObjArray("User")
  14. Response.Write ObjArray("Location")
  15.  
  16. 'Recorrer todos y mostrar relación Clave -> Valor
  17. For Each Clave In ObjArray
  18.     Response.Write Clave & " ------- " & ObjArray(Clave) & "<br />"
  19. Next
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.