decleration of multiple dimension array in asp

M

Michael Kirchner

Hi Ng,

I want to create a multiple dimension array in asp. What is the correct
way to declare it???

My try was someting like that. but it doesn't work. I'm pleased for some
infos...


Greetings
Michael

do while Not rs.EOF
i = i+1
y = y+1

reDim Preserve array(i,y)
array [i,y] = [rs.fields("Title"), rs.fields("Description")]
rs.MoveNext
loop
 
G

Gérard Leclercq

i=0
do while Not rs.EOF
i = i+1
Redim array(uBound(i)+1,2)
array (i,1) = rs.fields("Title")
array(i,2)= rs.fields("Description")
rs.MoveNext
loop
 
M

Michael Kirchner

Gérard Leclercq said:
i=0
do while Not rs.EOF
i = i+1
Redim array(uBound(i)+1,2)
array (i,1) = rs.fields("Title")
array(i,2)= rs.fields("Description")
rs.MoveNext
loop
Hey thanks for your quick help I will try it.

Greetigs Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,111
Latest member
KetoBurn
Top