# Dynamic variable

**URL:** <https://forum.kirupa.com/t/dynamic-variable/161995>\
**Category:** Uncategorized\
**Created:** [September 8, 2005, 7:46pm UTC](https://forum.kirupa.com/t/dynamic-variable/161995 "2005-09-08T19:46:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jolle](https://avatars.discourse-cdn.com/v4/letter/j/e36b37/32.png) [@jolle](https://forum.kirupa.com/u/jolle)\
**Post date:** [September 8, 2005, 7:46pm UTC](https://forum.kirupa.com/t/dynamic-variable/161995/1 "2005-09-08T19:46:07Z")

</div>

Hi, found this a bit hard to forumlate, hence the difficulties googling for help which is my normal way to go…  
anyway, I got a loop by using “for” and it creates a bunch of TextInputs, and I want each of them to have a seperate variable attatched to their Text value.  
Now this doesnt work, but maybe someone will understand what I want to do.

\_root.variable(j)

ok the variables are setup with a number on the end, and I want to use another variable (j) to represent that number, so on every loop it will put the next variable in there… ex:  
\_root.variable1  
\_root.variable2  
\_root.variable3 etc

Anyone know how to do this?
