Android Question Spinner key / value

luke2012

Well-Known Member
Licensed User
Longtime User
Hi All,
is there any solution to store the key (db primary key) and value within a spinner without using a list to store the keys?

A solution could be to store the key within the value:
B4X:
spnCities.Add ("1 - Milan") 'Key and value (if the user accept this)
spnCities.Add ("2 - London") 'Key and value (if the user accept this)
spnCities.Add ("3 - Madrid") 'Key and value (if the user accept this)

Any other way ?

Thanks in advance for your reply! :)
 
Last edited:
Top