# Help with array

**URL:** https://forum.kirupa.com/t/help-with-array/108473
**Category:** Uncategorized
**Created:** [April 25, 2004, 11:02pm UTC](https://forum.kirupa.com/t/help-with-array/108473 "2004-04-25T23:02:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![babywax](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@babywax](https://forum.kirupa.com/u/babywax)
#### Post date: [April 25, 2004, 11:02pm UTC](https://forum.kirupa.com/t/help-with-array/108473/1 "2004-04-25T23:02:18Z")

</div>

I can’t tell what is wrong with this code… I’m trying to make an array and list it’s elements in a text box.

```auto

	tabs = new Array();
	tabs[0] = "jerseys";
	tabs[1] = "tshirts";
	tabs[2] = "hats";
	for (i=0; i<tabs.length; i++) {
		_root.array.text += tabs*;
	}

```
