# Dynamic textbox name

**URL:** <https://forum.kirupa.com/t/dynamic-textbox-name/164325>\
**Category:** flash\
**Created:** [September 30, 2005, 6:34am UTC](https://forum.kirupa.com/t/dynamic-textbox-name/164325 "2005-09-30T06:34:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Voursez](https://avatars.discourse-cdn.com/v4/letter/v/b5ac83/32.png) [@Voursez](https://forum.kirupa.com/u/Voursez)\
**Post date:** [September 30, 2005, 6:34am UTC](https://forum.kirupa.com/t/dynamic-textbox-name/164325/1 "2005-09-30T06:34:36Z")

</div>

Ive got this problem, with setting the text, of some textboxes made in a for loop. This is the code:  
[AS]for (i = 0; i\<lengthXML; i++){  
createTextField(“textbox”+i, i, 100, 100, 100, 20);  
textbox.text = question;  
}[/AS]  
Now the problem is, how do i get “textbox”, to be called the same as the one created? Ive tried “‘textbox’+i.text = question”, but it just gives me an error.
