Danilo,
Thanks again, I tried the code you provided but it seems I
only retrieve 2
entries, if there is I entry it pops an error Subscript out
of range: '1'
The reason for me storing the entries is so I may it
elesewhere in the page
it appears several time i.e. <%=Reviewer1%>
Regards!
"danilocelic AdobeCommunityExpert"
<danilo@shimmerphase.com> wrote in
message news:fckm41$sej$1@forums.macromedia.com...
> MM User wrote:
>> Danilo,
>>
>> Sorry for the confusion, what I was after was to
combine the 1st column
>> and
>> 2nd column strings to a new variable reviewerX:
>>
>> so you would get:
>>
>> reviewer1 = value of row 1 column 1 & row 1
column 2
>> reviewer2 = value of row 2 column 1 & row 2
column 2
>> reviewer3 = value of row 3 column 1 & row 3
column 2
>> reviewer4 = value of row 4 column 1 & row 4
column 2
>> reviewer5 = value of row 5 column 1 & row 5
column 2
>> reviewer6 = value of row 6 column 1 & row 6
column 2
>> etc until there are none left
>>
>> hope this makes sense
>
> Sorry about that other post, accidentally hit the send
button when trying
> to move my message window around.
>
> Also, I was wrong earlier when I was talking about what
was stored in each
> dimension of the array returned by GetRows. What is
actually returned are
> the column values in the first dimension and the rows in
the second
> dimension. So MyArrry(0,1) refers to the first column
(zero based) in the
> second row.
>
> Anyway, exactly how you do it would again depend on what
you're trying to
> do with the group of "reviewers". The code below does
two things as it
> loops over the array returned by GetRows, it first
writes out the values
> and then stuffs the value into another array. Again,
depending on what you
> want to do with the data will depend on what you will
end up doing. If all
> you're doing would be to write out the values, then you
could have just as
> easily have looped over the recordset in the first
place, which would be
> easy to do with Dreamweaver's built in tools. Here's the
code:
>
> <%
> Dim MyArray
> MyArray = RecordsetName.GetRows()
>
> ' Array to store all the reviewers
> ' Using ReDim to be able to use a variable to size the
Reviewers array
> Dim Reviewers: Reviewers = Array()
> Redim Reviewers(UBound(MyArray)-1)
>
> Dim idx
> idx=0
>
> While idx < UBound(MyArray)
> Response.Write(MyArray(0,idx) & MyArray(1, idx)
& "<br />" )
> Reviewers(idx) = MyArray(0,idx) & MyArray(1, idx)
> idx = idx + 1
> Wend
>
> %>
>
>
> --
> Danilo Celic
> | Extending Knowledge Daily :
http://CommunityMX.com/
> | Adobe Community Expert