[thelist] ASP Problem - Pulling schedules items in a loop?

Jon Hughes hughesj at firemtn.com
Tue Jun 5 09:56:21 CDT 2007


Ken,

Thank you for your suggestion.

I actually accomplished what I wanted by simply calling a function in
each block. The function wrote to the page (via response.write) each
variable.

Thank you all for your help,

 - Jon

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Ken Schaefer
Sent: Monday, June 04, 2007 5:48 PM
To: thelist at lists.evolt.org
Subject: Re: [thelist] ASP Problem - Pulling schedules items in a loop?

Jon,

...

And then, in your presentation section, you just iterate your array to
write
out your links:

<%= WriteLinks(myArray) %>
'
'
'
<%
Sub WriteLinks( _
	byVal myArray _
	)

	If isArray(myArray) then

		For i = 0 to UBound(myArray, 1) -1

			Response.Write("<a href=""" & myArray(i,1) &
"""><img
src=""" & myArray(i,2) & """></a>"

		Next

	Else

		Response.Write("no matching links")

	End If

End Sub
%>


Cheers
Ken



More information about the thelist mailing list