Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Array Question 1

Status
Not open for further replies.

Rich25

Programmer
Feb 2, 2001
15
0
0
US
I have the following array:

Dim iRowLoop, iColLoop
For iRowLoop = 0 to UBound(TopicIdValues, 2)
For iColLoop = 0 to UBound(TopicIdValues, 1)
Vals = (TopicIdValues(iColLoop,iRowLoop) & &quot;<br>&quot;)
Next
Next

Response.Write Vals

Vals is only displaying the last value stored in the array,
how can I have all values stored in Vals??

Thanks

Rich
 

Dim Vals
Vals = &quot;&quot; ' INITIALIZE TO EMPTY STRING

Dim iRowLoop, iColLoop
For iRowLoop = 0 to UBound(TopicIdValues, 2)
For iColLoop = 0 to UBound(TopicIdValues, 1)
Vals = Vals + (TopicIdValues(iColLoop,iRowLoop) & &quot;<br>&quot;)
Next
Next
Wushutwist
 
Thanks a lot Wushutwist. You're hep was much appreciated!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top