# Can the listbox data variable be a string?

**URL:** <https://forum.kirupa.com/t/can-the-listbox-data-variable-be-a-string/52609>\
**Category:** flash\
**Created:** [May 25, 2004, 6:25pm UTC](https://forum.kirupa.com/t/can-the-listbox-data-variable-be-a-string/52609 "2004-05-25T18:25:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sparky\_J](https://avatars.discourse-cdn.com/v4/letter/s/aeb1de/32.png) [@Sparky\_J](https://forum.kirupa.com/u/Sparky_J)\
**Post date:** [May 25, 2004, 6:25pm UTC](https://forum.kirupa.com/t/can-the-listbox-data-variable-be-a-string/52609/1 "2004-05-25T18:25:14Z")

</div>

Hello,  
I followed the tutorial on listbox management and applied it to a project I’m working on, but I can’t get it to work. Can the “data” variable in the listbox be a string? I can’t get it to work.

The tutorial uses this:

```auto
list.addItem("My birthday",new Date(2002,4,9));

```

I’d like to use arrays that contain text for mine:

```auto
list_of_terms.addItem(wordList[0],definitionList[0]);

```

where wordList[0] is equal to “cat” and definitionList[0] is equal to “meow, meow”

It doesn’t seem to work, does anybody have any ideas on this?
