Android Question AS Wheel Picker: control reset

Aldo's

Active Member
Licensed User
I have been using this fantastic @Alexander Stolte control with satisfaction for a long time.
I load a picker from db loading everything on an array.
Now I have to empty the picker, load the array again and re-run the data loading in the picker.
But I can't find a way to clean the picker. I saw that there is a function picker.Clear(col), but putting the reference to the column does not do anything.
Where am I going wrong?
 

Alexander Stolte

Expert
Licensed User
Longtime User
I have been using this fantastic @Alexander Stolte control with satisfaction for a long time.
Thank you very much :)

Now I have to empty the picker, load the array again and re-run the data loading in the picker.
But I can't find a way to clean the picker. I saw that there is a function picker.Clear(col), but putting the reference to the column does not do anything.
Where am I going wrong?
As I understand it, you want to remove all columns and add new columns?
You can remove all columns with the following code:
B4X:
    For i = ASWheelPicker1.NumberOfColumns To 0 Step -1
        ASWheelPicker1.RemoveColumn(i)
    Next

I saw that there is a function picker.Clear(col), but putting the reference to the column does not do anything.
The “ASWheelPicker1.Clear(0)” function clears the list at the specified column, but does not remove the column.
In my test I saw that the list is emptied, if this is not visible for you, simply make a “.Refresh”, but this is not needed because these changes are made directly.
 
Upvote 0
Top