SaveFile(text text, text fileName)
Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.
- The app I am working on makes lists out of the text in the file. Should I convert to and from csv format when writing to and reading from the file?
Can you have a list of lists in CSV? From what I'm seeing in my searches, it looks like no
I think that will work. Thank you so much!!! One more question: In App Inventor is there a limit to the number of items a list can contain? If so, I'm sunk, since the lists inside the levels list will be quite lengthy I estimate.
I considered fusion tables earlier, but I want my app to work without Internet connection
A sprite has many levels.
A level has many values.
There are only level values for existing levels.
I'll do the objects and attributes in another post...
Thanks! If I have lists inside of lists inside of lists, could I still
convert to CSV format and store the table in the file?
Each item in the sprite list would be a levels list. Each item in the levels list would be a details (visible, text, x,y, etc.) list translated into a csv row.
Am I correct or do I misunderstand?
So if I use that technique I would create a sprite list.Each item in the sprite list would be a levels list. Each item in the levels list would be a details (visible, text, x,y, etc.) list translated into a csv row
To edit a details list I would translate a levels list item from csv to a list, edit the newly created list, and translate the list back to csv.
Am I correct or do I misunderstand?
Levels can be created and deleted. Levels are navigated with a listview. I need the levels to be a list to work with the creating and deleting the user is allowed to do
Is that a bad way to do it?
P.S. Sorry I accidentally emailed you.
To get the detail "name" (the user will name the items in the levels) of the first item in a level called myLevel, I'd get the tinyDB tag:
Join "myLevel/" + first item in list from file myLevel + "/name"
How's that? In the file I could do all the list work that needs to be done when a sprite in a level is deleted and there are more items in that level than there are sprites.
(since tinyDB has a limit of 80 characters
To get the detail "name" (the user will name the items in the levels) of the first item in a level called myLevel, I'd get the tinyDB tag:
Join "myLevel/" + first item in list from file myLevel + "/name"How's that? In the file I could do all the list work that needs to be done when a sprite in a level is deleted and there are more items in that level than there are sprites.
I don't understand what you mean by:
Any assignments of characters to Sprite component sowuld be tracked separately at run time.
How do you track something? Does that mean that during runtime I should set the image blocks and other blocks of the sprites? I'll be doing that.
How do you track something? Does that mean that during runtime I should set the image blocks and other blocks of the sprites? I'll be doing that.