Android Question fix combo box value

ibs06t

Member
Licensed User
hi
im asking one dougt in my project how to fix text value in combo box in b4a like vb6

combo1.text = "SAMPLE"
 

mangojack

Well-Known Member
Licensed User
Unsure of your question ? The text displayed in Combobox on loading ?
B4X:
    Dim lstValues As List
    lstValues.Initialize
    lstValues.AddAll( Array As String ("Cat", "Dog", "Sample"))
    B4XComboBox1.SetItems(lstValues)
   
    B4XComboBox1.SelectedIndex = 2  ' = Text set to "Sample"
 
Top