# Creating variables

**URL:** <https://forum.kirupa.com/t/creating-variables/315765>\
**Category:** Uncategorized\
**Created:** [November 3, 2010, 3:36pm UTC](https://forum.kirupa.com/t/creating-variables/315765 "2010-11-03T15:36:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)\
**Post date:** [November 3, 2010, 3:36pm UTC](https://forum.kirupa.com/t/creating-variables/315765/1 "2010-11-03T15:36:28Z")

</div>

hello … I wish to create multiple variables at runtime. ie:

```auto
var lc1:LocalConnection = new LocalConnection();
var lc2:LocalConnection = new LocalConnection();
var lc3:LocalConnection = new LocalConnection();

```

but with using a while/for loop. Because I want dynamic use of multiple connections … Is this possible … I cant get it to be figured… I have tried

```auto
for(i=0;i<3;i++){
var ["lc"+i]:LocalConnection = new LocalConnection();
}

```

any ideas out there??  
thanks 🙂
