iOS Question show name in label from picker

fifiddu70

Well-Known Member
Licensed User
i have on picker and label, i need to show name into picker in label

B4X:
Sub Process_Globals    
Private pk1 As Picker
    Dim picker1 As List
end sub
Private Sub Application_Start (Nav As NavigationController)
Page1.Initialize("Page1")
    Page1.RootPanel.LoadLayout("nomi")
    Page1.Title = "Nomi"
    Page1.RootPanel.Color = Colors.Gray
    NavControl.ShowPage(Page1)

pk1.Initialize("pk1")
    picker1.Initialize

pk1.SetItems(0,picker1)

    picker1.Add("Luca")
    picker1.Add("Filippo")
    picker1.Add("Andrea")
    picker1.Add("Sergio")
end sub
Sub picker1_ItemSelected (Column As Int, Row As Int)
    lbl2.Text = ???
End Sub
 

stevel05

Expert
Licensed User
picker1.GetSelectedItem(Column)
 

fifiddu70

Well-Known Member
Licensed User
Thanks stevel05, i try but not work because the project have a other problem, the sub picker is error, i correct sub picker1_ItemSelected in pk1_ItemSelected, now work fine, thanks for your help.
 
Top