# Filling array with variables

**URL:** <https://forum.kirupa.com/t/filling-array-with-variables/124025>\
**Category:** Uncategorized\
**Created:** [September 29, 2004, 1:18pm UTC](https://forum.kirupa.com/t/filling-array-with-variables/124025 "2004-09-29T13:18:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shvalb](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@shvalb](https://forum.kirupa.com/u/shvalb)\
**Post date:** [September 29, 2004, 1:18pm UTC](https://forum.kirupa.com/t/filling-array-with-variables/124025/1 "2004-09-29T13:18:16Z")

</div>

Hi.  
I’m interested to fill a simple array with variable names, NOT with strings! , because I need it for catching the data from asp file.  
I tried something like that but it doesn’t work

for(i=0; i \< 9; i++)  
{  
Variables\_array\* = Variable + i;  
trace(Variables\_array\*);  
}

if I initialize the array in this form it works:

var Variables\_array:Array = new Array(Variable1, Variable2, Variable3, …);

any ideas ?
