[FMX] TextField.htmlText help

Well I would like to say hello to everyone and the last time I did actual coding was four years ago for two years or so. I guess I’m going back onto it. I’m been reading the forums for about a month now, thanks for everyone for all the post, even though you guys don’t know me.

It’s quite simple but seems like it doesn’t work

[AS]
d =1;
(“dataBox”+d).html = true;
(“dataBox”+d).htmlText = “testing”;
[/AS]

while this works

[AS]
dataBox1.html = true;
dataBox1.htmlText = “testing”;
[/AS]

It is possible to add a var into it?
Thanks in advance.

It would be this[“dataBox”+d] (assuming the textbox is in the same timeline as the script)

d =1;
eval("dataBox"+d).html = true;
eval("dataBox"+d).htmlText = "testing";
//
d =1;
this["dataBox"+d].html = true;
this["dataBox"+d].htmlText = "testing";

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=12082

:wink:

edit. … lost beat me. :sleep:

Thanks for providing that link kax, I didn’t have time to run a search for it, actually, I don’t have time to post this :x

Gotta go… :slight_smile:

no problem, lost. that’s what i’m here for!! :stuck_out_tongue:

Thank you guys :slight_smile:

anytime. :wink:

and welcome to kirupa forum! :beam:

Thank you (-: