What can i get more object.Initialize("object"&number) data?
error in this
think you everyone!!
B4X:
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout_Examination_UI")
Dim examsTitle As Int = 0
For titleQuantity = 0 To 4
autoSpinner.Initialize("autoSpinnerEvent")
autoPanels.AddView(autoSpinner,540dip,((titleQuantity+1)*100)+10dip,150dip,50dip)
'example
autoSpinner.Tag="autoSpinnerEvent"&(titleQuantity+1)
autoSpinner.Add("item 1")
autoSpinner.Add("item 2")
autoSpinner.Add("item 3")
autoSpinner.Add("item 4")
autoSpinner.TextSize = 20
Next
End Sub
error in this
B4X:
Sub btnQRCode_Click
Dim tmpstr As String
For i = 0 To 4
If "autoSpinnerEvent"&(i+1) = autoSpinner.Tag Then
tmpstr = autoSpinner.SelectedItem & ":" & tmpstr
End If
Next
Msgbox(tmpstr,"")
End Sub
think you everyone!!