# Array Problem

**URL:** <https://forum.kirupa.com/t/array-problem/44284>\
**Category:** Uncategorized\
**Created:** [March 2, 2004, 4:00pm UTC](https://forum.kirupa.com/t/array-problem/44284 "2004-03-02T16:00:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FREDSTER](https://avatars.discourse-cdn.com/v4/letter/f/ebca7d/32.png) [@FREDSTER](https://forum.kirupa.com/u/FREDSTER)\
**Post date:** [March 2, 2004, 4:00pm UTC](https://forum.kirupa.com/t/array-problem/44284/1 "2004-03-02T16:00:28Z")

</div>

trace(“removeAccess=”);  
trace(removeAccess);  
newName=removeAccess+“Hole”  
for (var i = 0; i\<newName.length; i++) {  
}

I am trying to setup a variable and use this variable to search thru an array using the variable’s name. This code I am using does not work. Are there any workarounds??

Any help would be great.

Thanks
