Android Question B4XListTemplate ¿SelectedIndex?

IdasI4A

Active Member
Licensed User
Longtime User
Does anyone know how to get SelectedIndex on a B4XListTemplate?
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
 
Top