# Update array values?

**URL:** <https://forum.kirupa.com/t/update-array-values/176466>\
**Category:** Uncategorized\
**Created:** [January 24, 2006, 12:10pm UTC](https://forum.kirupa.com/t/update-array-values/176466 "2006-01-24T12:10:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blaatorx](https://avatars.discourse-cdn.com/v4/letter/b/f17d59/32.png) [@blaatorx](https://forum.kirupa.com/u/blaatorx)\
**Post date:** [January 24, 2006, 12:10pm UTC](https://forum.kirupa.com/t/update-array-values/176466/1 "2006-01-24T12:10:48Z")

</div>

maybe someone can solve this one too:  
i have an array like this:

```auto

for(i=0; i<ap.length; i++)
{
    storePositions.push(this._parent._parent["mcItem"+i]._x)
}

```

now i want to update all the values with a value of +160  
how can i do that?
