omarruben Active Member Licensed User Longtime User Aug 3, 2021 #1 hi, is it possible to get the selected Item index (int) from a list inside a Dialog B4XListTemplate? this code return the string, but I would like to get the index or position of the item on the list B4X: options.Initialize options.Options = Array("Cat", "Dog", "Fish", "Crocodile") log(options.seleteditem) ---> "Fish"
hi, is it possible to get the selected Item index (int) from a list inside a Dialog B4XListTemplate? this code return the string, but I would like to get the index or position of the item on the list B4X: options.Initialize options.Options = Array("Cat", "Dog", "Fish", "Crocodile") log(options.seleteditem) ---> "Fish"
omarruben Active Member Licensed User Longtime User Aug 3, 2021 #2 found on the forum : xxx = options.Options.IndexOf(options.SelectedItem) Upvote 0