Hi, in B4A I create buttons programmatically with this code
In B4I i get SIX error.
How can I replace incorrect instructions?
thanks to those who want to give me help
B4X:
Dim x, y As Int
For y = 0 To ROWs-1
For x = 0 To columns - 1
Dim bt As Button
bt.Initialize("Button") ERROR 1
strLines =list1.get(y)
bt.Text = strLines
bt.Tag = y*columns
bt.Typeface= Typeface.DEFAULT_BOLD ERROR 2
bt.TextSize=20 ERROR 3
bt.SingleLine=True ERROR 4
bt.textcolor= Colors.RGB(0,0,128) ERROR 5
bt.Gravity = Bit.Or(Gravity.LEFT, Gravity.CENTER_VERTICAL) ERROR 6
ScreenScrollView.Panel.AddView(bt, x*BWidth,y*BHeight+2dip,BWidth,BHeight-4dip) 'Add Button
Next
Next
In B4I i get SIX error.
How can I replace incorrect instructions?
thanks to those who want to give me help