rene castanos
New Member
hi. first of all i'd like to say thank you to Erel for being patient with me.
i'm just trying to display some letters using Label1.Text = "A" up to Label12.Text = "L" which comes out fine. i can see the output on my phone with all the letters A to L lined up across the screen. now i'm trying to 'shorten' the code using an array like this:
dim mlabel(12) as label
for i = 0 to 11
mlabel(i).initialize(" ")
mlabel(i).text = letters(i)
next
i got these ideas from all the questions in this forum. i'm even trying to apply the principle behind the buttons in the chapter 3 second program, beginner's guide. i still can't understand most of the codes but i'm trying.
the letters(i) variable holds the letters A to L. the code compiles fine. it's just that when i launch the app on my phone the screen is blank. everything is default here with the labels. i just can't connect the mlabel(i) to the actual Label1.Text view. if i do it the 'long' way of coding all the text into the label views one by one the letters will show on my phone. but if i do the array version nothing happens.
i just started last month and i'm pretty impressed with this software since i don't know anything about java and android. so thanks to the guys who developed B4A.
everyone's help is highly appreciated. thanks!
rene
i'm just trying to display some letters using Label1.Text = "A" up to Label12.Text = "L" which comes out fine. i can see the output on my phone with all the letters A to L lined up across the screen. now i'm trying to 'shorten' the code using an array like this:
dim mlabel(12) as label
for i = 0 to 11
mlabel(i).initialize(" ")
mlabel(i).text = letters(i)
next
i got these ideas from all the questions in this forum. i'm even trying to apply the principle behind the buttons in the chapter 3 second program, beginner's guide. i still can't understand most of the codes but i'm trying.
the letters(i) variable holds the letters A to L. the code compiles fine. it's just that when i launch the app on my phone the screen is blank. everything is default here with the labels. i just can't connect the mlabel(i) to the actual Label1.Text view. if i do it the 'long' way of coding all the text into the label views one by one the letters will show on my phone. but if i do the array version nothing happens.
i just started last month and i'm pretty impressed with this software since i don't know anything about java and android. so thanks to the guys who developed B4A.
everyone's help is highly appreciated. thanks!
rene