Does anyone know how to get SelectedIndex on a B4XListTemplate?
Thank you
Sub Globals:
Private Dialog As B4XDialog
Private options As B4XListTemplate
B4X:
Dialog.Title="Animales"
options.Initialize
options.Options = Array("Cat", "Dog", "Fish", "Crocodile")
B4X:
Wait For (Dialog.ShowTemplate(options, "", "", "CANCELAR")) Complete (Result As Int)
If Result = XUI.DialogResponse_Positive Then
log(options.SelectedItem)
' log(options.SelectedIndex) ¿?
End If
Thank you