PDA

View Full Version : [FMX] TextField.htmlText help



Vleonz
July 11th, 2003, 06:32 PM
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


d =1;
(“dataBox”+d).html = true;
("dataBox"+d).htmlText = "testing";


while this works


dataBox1.html = true;
dataBox1.htmlText = "testing";


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

lostinbeta
July 11th, 2003, 06:40 PM
It would be this["dataBox"+d] (assuming the textbox is in the same timeline as the script)

kode
July 11th, 2003, 06:41 PM
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

;)

edit. ... lost beat me. :sleep:

lostinbeta
July 11th, 2003, 06:44 PM
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.... :)

kode
July 11th, 2003, 06:46 PM
no problem, lost. that's what i'm here for!! :P

Vleonz
July 11th, 2003, 06:47 PM
Thank you guys :)

kode
July 11th, 2003, 06:48 PM
anytime. ;)

and welcome to kirupa forum! :beam:

Vleonz
July 11th, 2003, 06:52 PM
Thank you (-: