netsistemas Active Member Licensed User Longtime User Oct 21, 2020 #1 Is this code correct or there are any other thecnic: B4X: private Sub ClearCombo(Combo As B4XComboBox) #if b4a Combo.cmbBox.Clear #else 'for b4j Combo.cmbBox.Items.Clear #End If End Sub
Is this code correct or there are any other thecnic: B4X: private Sub ClearCombo(Combo As B4XComboBox) #if b4a Combo.cmbBox.Clear #else 'for b4j Combo.cmbBox.Items.Clear #End If End Sub
Erel B4X founder Staff member Licensed User Longtime User Oct 21, 2020 #3 I would have used: B4X: cmb.SetItems(Array()) Upvote 0
LucaMs Expert Licensed User Longtime User Oct 21, 2020 #4 Erel said: I would have used: B4X: cmb.SetItems(Array()) Click to expand... That would be a good trick but it shouldn't be accepted Upvote 0
Erel said: I would have used: B4X: cmb.SetItems(Array()) Click to expand... That would be a good trick but it shouldn't be accepted