Android Question B4XComboBox event SelectedIndexChanged

andredamen

Active Member
Licensed User
Longtime User
How can I make it possible that SelectedIndexChanged event will be launched even if it doesn't change the index?
 

zed

Well-Known Member
Licensed User
If you want to trigger the action without using the event, perhaps you can call the method directly:
Call:
CallSubDelayed2(Me, "ComboBox1_SelectedIndexChanged", ComboBox1.SelectedIndex)
This should simulate the event without changing the index.
 
Upvote 0

andredamen

Active Member
Licensed User
Longtime User
Unfortunately, that doesn't work. I fill the combo box and then delete, for example, item 3 (with index 2). The combo box is repopulated. If I then select the third item again (with index 2), the sub isn't executed because the index is 2 again and therefore hasn't changed. I'd like to fix that problem.
I clear the cmbobox with cmbbox.clear but there should also be a cmbbox.clearindex.
 
Last edited:
Upvote 0
Top