faqts : Computers : Programming : Languages : Asp : ASP/VBScript : Common Problems

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 8 people (63%) answered Yes
Recently 4 of 6 people (67%) answered Yes

Entry

How do I make an application object a collection and then dynamically loop through the collection displaying the variable name and the value of the variable?

May 23rd, 2000 07:21
unknown unknown, caiuby


Try this

<%
application("test1") = 123
application("test2") = "ABC"
response.write "<table border=1 width='40%'><Tr><td>Variável<td>Valor"
For Each Item In Application.Contents
   response.write "<tr><td>" & item & "<td>" & application(item)
Next
response.write "</table>"
%>



© 1999-2004 Synop Pty Ltd