StartValue made up of a list.... how to add an item to the StartValue on the fly

Hi All

1st List

I have constructed a startvalue from a list of items and I pass this startvalue through 3 screens

On the second screen I need to add (append) another item onto the startvalue list.

need to add (append to above list (startvalue)

Please can someone show me how to do this. Ive searched and looked all over the place

T hanks

Use the add items to list block
You can find it in the List drawer

Taifun

blocks(17)

Hi Taifun

I tried that but where does it add it to and how can I extract the item later because there is no connector

To select an item from the list use the select list item block

Well, if the get start value is a list, it adds your text as list item

Also what about using Do it?
use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing and Debugging

Taifun

I just have seen your screenshot in the first post… you are using TinyDB… in this case there is no need to pass the values like this to the other screen, just get the values from TinyDB there

Let me suggest you to do some tutorials to learn the basics…

A very good way to learn App Inventor or Kodular is to read the free Inventor’s Manual here in the AI2 free online eBook App Inventor 2 Book: Create Your Own Android Apps … the links are at the bottom of the Web page. The book ‘teaches’ users how to program with AI2 blocks.
There is a free programming course here Course In A Box and the aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps
How to do a lot of basic things with App Inventor are described here: How do you...? .

Also do the tutorials Tutorials for MIT App Inventor to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor

Taifun

Thanks again

I guess what im asking is this

unlike this block

blocks(18)

where you get to add item to a start value when movinG to another screen (essentially making the equivalent of a session variable) HOW can on just write values INTO A startvalue to pick up on AMY SCREEN

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.