@Eme Fibonacci
Thank you for your testing.
From your code I guess it is necessary to address the B4XComboBox completely.
I do not make this in my code completely. I will test this in a small app.
@Eme Fibonacci
Thank you for your testing.
From your code I guess it is necessary to address the B4XComboBox completely.
I do not make this in my code completely. I will test this in a small app.
XUI Views is a b4x library (https://www.b4x.com/android/forum/threads/100383/#content). The same b4xlib library is compatible with B4A, B4i and B4J It is a collection of custom views and dialogs. Everything is written in B4X. The source code is included inside the b4xlib file, which is a zip...
I do not get Items.RemoveAt in the context from the B4XComboBox. The IDE tells me that there is no "item".
I have uploaded a small test project. Maybe you can check it.
I use XUIViews 2.44.
Private Sub btnDelete_Click
ToDeleteIndex = cbHelper.SelectedIndex
'Log($"Selected Item Index: ${ToDeleteIndex}"$)
Items.RemoveAt(ToDeleteIndex)
cbHelper.SetItems(Items)
cbHelper.SelectedIndex=0
End Sub
It worked in B4J. Is this ok?
I will test yours and mine in B4i as I need it there.
I am sure that only cbHelper.SetItems(Items)
works in all three platforms.
cmbBox is in:
- B4A a Spinner
- B4J a ComboBox
- does not exist
In B4i it is a Button with an ActionSheet.