# Problem with createTextField

**URL:** <https://forum.kirupa.com/t/problem-with-createtextfield/124021>\
**Category:** Uncategorized\
**Created:** [September 29, 2004, 12:10pm UTC](https://forum.kirupa.com/t/problem-with-createtextfield/124021 "2004-09-29T12:10:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shvalb](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@shvalb](https://forum.kirupa.com/u/shvalb)\
**Post date:** [September 29, 2004, 12:10pm UTC](https://forum.kirupa.com/t/problem-with-createtextfield/124021/1 "2004-09-29T12:10:25Z")

</div>

Hi.

I’m interested to create textFields dynamically, but I don’t know how to make this code working, can someone please help me to understand what do I have to put in my code at line 4 in the brackets ?? in order it to work.

btw: if the variable “losingdate” in my code is achieved from asp file, is this line: this.New1.text = losingdate; is a valid thing to do ??

for(i=1; i \< 5; i++) {  
this.createTextField(“New” + i, this.getNextHighestDepth(), 0 , 0, 100, 20);  
this.New1.border = true;  
this.(New+i).text = losingdate;  
???  
}  
Thanks alot.
