iOS Question B4XComboBox

toro1950

Active Member
Licensed User
Hi, for a few days I've been trying to convert an Android App into an iOS App. I'm encountering several problems, which is why I'm posting. I have a
B4XComboBox with several items (rows), and every time an item is selected and a control used it must delete the same so that it can no longer be used,
with B4A I used the following code successfully. I called the B4XComboBox combora
B4X:
    Dim posizione As Int = combora.cmbBox.IndexOf(l.Text)
        'l.Text  is the row that needs to be deleted
        If posizione <> -1 Then
            combora.cmbBox.RemoveAt(posizione)
Unfortunately B4I does not support cmbBox or RemoveAt, what is the best solution to solve this problem? can anyone help me
 

toro1950

Active Member
Licensed User
Remove the item from your list and add the list again to the combobox.
Good morning, the idea could be good but difficult to implement, because when you have to eliminate an item based on other variables I would have to eliminate other subsequent items, however I will try, but I haven't even started before I found the first problem, how to empty the combo since it doesn't accept Clear? Also please reply to my email that I sent you on the 13th, thank you
 
Upvote 0

Alexander Stolte

Expert
Licensed User
Longtime User
Also please reply to my email that I sent you on the 13th, thank you
I have already replied to you, but the e-mail was not allowed through by your e-mail provider and since I have no idea who you are on the forum, I could not establish any other contact. That's why everyone should contact me in the forum and not by e-mail.
 
Upvote 0

toro1950

Active Member
Licensed User
Having seen with regret that it is not possible to remove items from the B4XComboBox and not even finding how to empty it since it does not accept .Clear I fervently hope that we can change the affected item with a different string to make the user understand that it is not available for example " --.--"
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
Having seen with regret that it is not possible to remove items from the B4XComboBox and not even finding how to empty it since it does not accept .Clear I fervently hope that we can change the affected item with a different string to make the user understand that it is not available for example " --.--"
A small modification to B4XComboBox would be needed.
I could do it myself, in a short time, but then you would have to use this version of B4XComboBox of mine.
Let me know if you are interested.
 
Upvote 0

toro1950

Active Member
Licensed User
A small modification to B4XComboBox would be needed.
I could do it myself, in a short time, but then you would have to use this version of B4XComboBox of mine.
Let me know if you are interested.
Thank you for your availability but I think I will do without the BAXComboBox, I think I will also remove it from the Android version, if anything I will do as you suggested by writing to Erel. Now what interests me is the calendar, as you may have read Alexander Stolte invited me to write to him on the forum, I opened a conversation with him by clicking on Start Conversation, but I don't know how to read his possible response
 
Upvote 0

Shelby

Well-Known Member
Licensed User
Longtime User
Thank you for your availability but I think I will do without the BAXComboBox, I think I will also remove it from the Android version, if anything I will do as you suggested by writing to Erel. Now what interests me is the calendar, as you may have read Alexander Stolte invited me to write to him on the forum, I opened a conversation with him by clicking on Start Conversation, but I don't know how to read his possible response
You will get an email where you can read his response and, or it gives you a link to see his reply in a forum message.
 
Upvote 0
Top