# Populating an array with a loop?

**URL:** <https://forum.kirupa.com/t/populating-an-array-with-a-loop/91558>\
**Category:** Uncategorized\
**Created:** [October 6, 2003, 2:09am UTC](https://forum.kirupa.com/t/populating-an-array-with-a-loop/91558 "2003-10-06T02:09:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![krvz](https://avatars.discourse-cdn.com/v4/letter/k/43a26b/32.png) [@krvz](https://forum.kirupa.com/u/krvz)\
**Post date:** [October 6, 2003, 2:09am UTC](https://forum.kirupa.com/t/populating-an-array-with-a-loop/91558/1 "2003-10-06T02:09:53Z")

</div>

Hi…

I was wondering if it is possible to populate an array using a loop. For example, I need to create an array with a large number of images (ie img0, img1, img2 …), but don’t want to type each in manually. It would be easier, in my head, to create a loop that i could set the length, and it would create my array with img0, img1, img2 … up to the predefined length. Any ideas? Thanks in advance!

Kris
