# Question

**URL:** <https://forum.kirupa.com/t/question/63466>\
**Category:** Uncategorized\
**Created:** [September 7, 2004, 6:13am UTC](https://forum.kirupa.com/t/question/63466 "2004-09-07T06:13:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hitsuji\_04](https://avatars.discourse-cdn.com/v4/letter/h/94ad74/32.png) [@hitsuji\_04](https://forum.kirupa.com/u/hitsuji_04)\
**Post date:** [September 7, 2004, 6:13am UTC](https://forum.kirupa.com/t/question/63466/1 "2004-09-07T06:13:46Z")

</div>

I have questions here… I wan the next statement to b in the next line in a dynamic text box… My text is extracted frm an array… So how can it b done? And I dunno how to loop the array so tat each element tat is extracted out will b the next statement of the previous statement… If I loop, the old one will b replaced by the newest one… Thanx in advance…

codes:  
\<!-- theName is the var name for the dynamic text box --\>

//for (var i=0; i\<tempArray.length; i++)  
//{  
theName = tempArray[0][0]+" “+tempArray[0][1]+” “+tempArray[0][2]+” "  
+tempArray[1][0]+" “+tempArray[1][1]+” “+tempArray[1][2]+” "  
+tempArray[2][0]+" “+tempArray[2][1]+” “+tempArray[2][2]+” "  
+tempArray[3][0]+" “+tempArray[3][1]+” “+tempArray[3][2]+” "  
+tempArray[4][0]+" “+tempArray[4][1]+” “+tempArray[4][2]+” "  
+tempArray[5][0]+" “+tempArray[5][1]+” “+tempArray[5][2]+” "  
+tempArray[6][0]+" “+tempArray[6][1]+” “+tempArray[6][2]+” "  
+tempArray[7][0]+" “+tempArray[7][1]+” “+tempArray[7][2]+” "  
+tempArray[8][0]+" “+tempArray[8][1]+” “+tempArray[8][2]+” "  
+tempArray[9][0]+" “+tempArray[9][1]+” “+tempArray[9][2]+” "  
+tempArray[10][0]+" “+tempArray[10][1]+” “+tempArray[10][2]+” "  
+tempArray[11][0]+" “+tempArray[11][1]+” “+tempArray[11][2]+” "  
+tempArray[12][0]+" “+tempArray[12][1]+” “+tempArray[12][2]+” "  
+tempArray[13][0]+" “+tempArray[13][1]+” “+tempArray[13][2]+” "  
+tempArray[14][0]+" “+tempArray[14][1]+” "+tempArray[14][2];  
//}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 7, 2004, 6:41am UTC](https://forum.kirupa.com/t/question/63466/2 "2004-09-07T06:41:26Z")

</div>

here buddy…  
this is how you can write the code…  
for your array you need 2 for loops like shown below…  
"  
" will ensure text to go to the next line…

for (i=0; i\<tempArray.length; i++) {  
for (j=0; j\<=2; j++) {  
theName = theName+" “+tempArray\*[j];  
}  
theName = theName+”  
";  
}

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 7, 2004, 7:20am UTC](https://forum.kirupa.com/t/question/63466/3 "2004-09-07T07:20:48Z")

</div>

Thanx alot… seapink… I’m quite stupid…
