# Finding Values in an Array tutorial

**URL:** <https://forum.kirupa.com/t/finding-values-in-an-array-tutorial/167211>\
**Category:** flash\
**Created:** [October 26, 2005, 9:17am UTC](https://forum.kirupa.com/t/finding-values-in-an-array-tutorial/167211 "2005-10-26T09:17:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![evm](https://avatars.discourse-cdn.com/v4/letter/e/439d5e/32.png) [@evm](https://forum.kirupa.com/u/evm)\
**Post date:** [October 26, 2005, 9:17am UTC](https://forum.kirupa.com/t/finding-values-in-an-array-tutorial/167211/1 "2005-10-26T09:17:49Z")

</div>

Hi all,  
Firstly im new to strings/arrays and dont erally get the difference, forgive me if i sound silly:stare:

i was looking at the tutorial [color=#003366]\*\*Finding Values in an Array \*\*[/color][here](http://www.kirupa.com/developer/actionscript/finding_values_array.htm)  
and was wondering if i could replace

```auto
dataValues = [10,9,8,7,6,5,4,3,2]; 

```

with a string value thats is read from a text box eg,

```auto
dataValues = [myStringValue];

```

. myStringValue holds

```auto
"1,2,3,4,5,6,7"

```

and only finds it if i type in the full value, how do i get it to find each value seperatley after each comma? Everytime i try that it doesnt work correctly.

Could someone please help me out  
Thanks
