Jim Brown Active Member Licensed User Longtime User Nov 18, 2013 #1 I am trying to figure out how to add or associate a list of items to a combox box but can't seem to figure this one out. Having poured over the DBUtils example (which features combo boxes) I can't see how the lists are being linked to the combo boxes Any pointers please?
I am trying to figure out how to add or associate a list of items to a combox box but can't seem to figure this one out. Having poured over the DBUtils example (which features combo boxes) I can't see how the lists are being linked to the combo boxes Any pointers please?
Erel B4X founder Staff member Licensed User Longtime User Nov 18, 2013 #2 For example: Code: Copy cmb.Items.Add("Item 1") cmb.Items.Add("Item 2") Items property returns a List. In the case of DBUtils the list is passed to ExecuteList which then fills it. Upvote 0
For example: Code: Copy cmb.Items.Add("Item 1") cmb.Items.Add("Item 2") Items property returns a List. In the case of DBUtils the list is passed to ExecuteList which then fills it.
Jim Brown Active Member Licensed User Longtime User Nov 18, 2013 #3 Thanks Erel. Seeing the .Items popup help saying this was a read only field returning a list I did not realize it had sub properties. Upvote 0
Thanks Erel. Seeing the .Items popup help saying this was a read only field returning a list I did not realize it had sub properties.
C cbal03 Active Member Licensed User Longtime User Apr 22, 2014 #4 I had some trouble with this as well. I found that if the combobox was added in the designer then do not initialize it in code. just use the events to trap changes. It should still be dimensioned however. Upvote 0
I had some trouble with this as well. I found that if the combobox was added in the designer then do not initialize it in code. just use the events to trap changes. It should still be dimensioned however.