# Create many objects using variable statement

**URL:** <https://forum.kirupa.com/t/create-many-objects-using-variable-statement/195265>\
**Category:** Uncategorized\
**Created:** [July 30, 2006, 7:09am UTC](https://forum.kirupa.com/t/create-many-objects-using-variable-statement/195265 "2006-07-30T07:09:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nutz](https://avatars.discourse-cdn.com/v4/letter/n/e8c25b/32.png) [@nutz](https://forum.kirupa.com/u/nutz)\
**Post date:** [July 30, 2006, 7:09am UTC](https://forum.kirupa.com/t/create-many-objects-using-variable-statement/195265/1 "2006-07-30T07:09:07Z")

</div>

this shouldn’t be too difficult

heres my code:

for(i=0; i\<30; i++){  
var box\*:Object = new Object()  
box\*.id = \*  
box\*.name = “default”  
box\*.location = “default”  
box\*.type = “default”

but its not working. i keep getting error messages concerning the var box\* statement. thx 🙂
