Spinner - Add from list

Cynikal

Member
Licensed User
Longtime User
If I have a text file, and its contents go as:

1
2
3
4
5
6
7
8


how can i add each individual to a spinner?
 

kickaha

Well-Known Member
Licensed User
Longtime User
1) Get the contents of the file into a list:
B4X:
Dim List1 As List
List1 = File.ReadList(File.DirDefaultExternal, "1.txt")
2) Add list to spinner:
B4X:
Spinner.AddAll(List1)

Should work a treat.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…