Page 1 of 1

Label Array

Posted: Mon Mar 24, 2014 10:43 am
by Johnny

Hi there

I have a 1 text box and 1 label.
I type text in the "Text box" and press the button. Now it shows in the Label.

But what I want now is when I type again text in the Text Box then that text must also be on the same label but not removing the first label.

var chat = [];
chat[0] = img;
chat[1] = naam;
chat[2] = msg;
for (var i = 0; i < 1; i++) {
Appery('lbl_chat').text(chat[2]);
}


Label Array

Posted: Mon Mar 24, 2014 11:44 am
by Maryna Brodina

Hello!

Add text, not rewrite prevar chat = [];
chat[0] = img;
chat[1] = naam;
chat[2] = msg;
for (var i = 0; i < 2; i++) {
Appery('lbl_chat')&#46;text(Appery('lbl_chat')&#46;text() + chat);
}/pre


Label Array

Posted: Mon Mar 24, 2014 11:49 am
by Johnny

Awesome!!!!

Thank you :)