B4J Question Filling In The ComboBox

vmag

Active Member
Hello!
I fill in the ComboBox like this:
B4X:
Public Combo1 As ComboBox
Combo.Items.Add ("value1")
Combo.Items.Add ("value2")
Getting the result:
0 - value1
1 - value2
??? Can I fill in the ComboBox so that the result is as follows:
15 - value1
17 - value2

If you can give the code,
Thanks!
 

vmag

Active Member
Thank you, but it seems to be a special case for this example...
And if there are many values (10-50)?
- let's say I have a classifier (table):
Key/Name
1/Loren
2/Bazilio
15/Ivan
.......
30/Stiven

- and is in the layout of the ComboBox/ListBox form
- I need to read the entire table and write it completely in ComboBox/ListBox one-to-one,
so that when I select "Ivan" in the list, for example, I get the value = 15.
Naturally the Key column should not be displayed when selecting.
I'm sorry that I didn't voice the problem in full right away...
 
Upvote 0
Top