2017년 5월 19일 금요일

is the spinner a list?


do you add items directly into the spinner using the add items to list block and spinner elements block as the list ?
or do you have to create a global variable as a list , then every add the item to the global variable list , then set the spinner element to the global variable list then save the global variable list on the tiny db, then when screen initializes, initialize the global variable list to the value from tiny db, and set the spinner elements to the global variable list?(the item is a tag and is added when a user saves something ) 
thanks! :) 

--
Nope... you can only add items as elements.  So, you would have to make a CSV list and use that to add the items.  In addiiton, you can't do one at a time, but instead have to set the entire list of elements at once...

--
so I have to set the spinner elements to a list, and add the items to that list then update the elements,
thank you! :)

--
Not necessarily Jen...

You could also do Set Spinner.Elements to Dog,Cat,Whale,Fox,Teddy Bear,Alligator,Snake

Just build a CSV list like that.  You could also build a regular list and then set the elements to that.

--
yes i understand, im just using a global variable list because my items for the spinner are responses from the notifier which are tags which are stored in the tiny db.
thanks for your help.

--

댓글 없음:

댓글 쓰기