Hi There,
There is a principal that once your application is developed it will change the data but will not change the blocks you have.
We have our blocks to do the stuff like changing the data, appearance, calculation etc.
I agree that you need to save your different chats in different place at firebase. That has nothing to do with creating new list in the blocks for each user.
Instead you can make a main list like this:
Main List
Chat 1
Sentence 1
Sentence 2
Sentence 3
Chat 2
Sentence 1
Sentence 2
Sentence 3
Chat 3
Sentence 1
Sentence 2
Sentence 3
So you don’t need to create a new variable. Instead update the existing variable i.e. Main List
The reason I want to create a new list, is so that the new list can replace a specific chat (say chat 3), when sentence 2 is introduced. Currently, it is either, having the same list for all chats, or the new sentences replacing the old for me.
Ok Thank you. I am still trying something different. I am posting something else that is puzzling me. Please take a look at it if you can. It’ll be posted in several minutes
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...? .
Thank you,I solved my own problem. This thread is about programmatically creating a list, it’s not quite like what you suggested but I did not use it in the end. But thank you. I appreciate it.
It is a completely different algorithm. It would be out of topic here. That’s why I didn’t mark any one’s answer as a solution. The solution has not yet been found for this specific topic.
such that we don’t have to manually assign a new variable to each new list?
what about using a list of lists? you only neeed one variable in this case for the list of lists
and what about following the links to the list tutorials?