palmaf Member Licensed User Longtime User Feb 27, 2015 #1 In my application i have a spinner with some elements . Made the choice I save the value and the position in a database. The subsequent reopening of the application i would like through the saved parameters bring up on the spinner the choice made previously, is possible ?
In my application i have a spinner with some elements . Made the choice I save the value and the position in a database. The subsequent reopening of the application i would like through the saved parameters bring up on the spinner the choice made previously, is possible ?
tufanv Expert Licensed User Longtime User Feb 27, 2015 #2 If you save the choice to database , you can retrieve it of course and show on the spinner Upvote 0
palmaf Member Licensed User Longtime User Feb 27, 2015 #3 I don't know how , which property of the spinner use ? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Feb 27, 2015 #4 You need to set the SelectedIndex property: Code: Spinner1.SelectedIndex = 1 'select the second item Upvote 0
palmaf Member Licensed User Longtime User Feb 27, 2015 #5 Works perfectly, thanks for the help Upvote 0