Hi guys, I'm a new with Basic4Android and have a question.
I need to create 150 labels and 150 EditText, I create it on Runtime and the code is almost this:
How can I read the .text value on each editbox to save to a SQLlite Database?
I read from the database and put it on the Label ok, but the problem is to read the textboxes.
I need to create 150 labels and 150 EditText, I create it on Runtime and the code is almost this:
B4X:
For i = 0 To 150 -1
'Inicia Agregar un Label
labelx.Initialize("labelx")
labelx.TextSize= 20
labelx.Text="Un label"
pnl_formulario1.AddView(labelx, 30dip, (i*30), 200dip, 25dip)
'Inicia Agregar un Textbox
textbox.Initialize("labelx")
textboxTextSize= 20
textbox.Text="Un Textbox"
pnl_formulario1.AddView(textbox, 30dip, (i*30), 200dip, 25dip)
Next
How can I read the .text value on each editbox to save to a SQLlite Database?
I read from the database and put it on the Label ok, but the problem is to read the textboxes.
Last edited: