[thelist] asp array into variables

dn at dittodesign.co.uk dn at dittodesign.co.uk
Wed Aug 13 05:43:57 CDT 2003


After much trawling of google I'm a little closer
to pulling this off but I've hit a dead end.

Here's the code -

<%
Dim tbValues
tbValues = RsHomepage.GetRows(, , Array("Image"))

%>

<%
Dim ImgSrc
Dim ImgSrc1
Dim ImgSrc2
Dim ImgSrc3
Dim ImgSrc4
Dim i

For i = 0 To UBound(tbValues, 2)
  ImgSrc = tbValues(0, i)
  ImgSrc1 = tbValues(1, i)
  ImgSrc2 = tbValues(2, i)
  ImgSrc3 = tbValues(3, i)
  ImgSrc4 = tbValues(4, i)
  Response.Write((ImgSrc) & "<br>")
Next

%>

Results in an error - 
Subscript out of range: '[number: 1]'

Since I'm not at all sure about the syntax could
somebody please point out where I'm going wrong ;-)
Or if this will even work. I can find anything on Google about
splitting an array into variables.

tia,

Darren Yates
dn at dittodesign.co.uk
http://dittodesign.co.uk



More information about the thelist mailing list