Android Question fix combo box value

Discussion in 'Android Questions' started by ibs06t, Jun 29, 2019.

  1. ibs06t

    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"
     
  2. mangojack

    mangojack Well-Known Member Licensed User

    Unsure of your question ? The text displayed in Combobox on loading ?
    Code:
    Dim lstValues As List
        lstValues.Initialize
        lstValues.AddAll( 
    Array As String ("Cat""Dog""Sample"))
        B4XComboBox1.SetItems(lstValues)
       
        B4XComboBox1.SelectedIndex = 
    2  ' = Text set to "Sample"
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice