I'm working on a small app in which I have a 2 column CSV file (with title headers) that I need to store in two lists (without headers).
I've tried to do it using the File block and the Datafile blocks, but both give me different problems.
The CSV is just NAME,VALUE so nothing complicated there.
When I use the Datafile, the data gets stored as (NAME VALUE) which makes it impossible to separate both fields.
When I use the File object, I can load the CSV and display it in it's entirety inside a Listview object, but I can't figure out how to separate it into two lists as Appinventor keeps throwing error messages at me.
Any help is very welcome as I don't see me doing this using a bunch of Add to list blocks.
Thanks
Have you searched in this community regarding your doubt? There are more topics available. You maynot have create a topic if you would have searched about it.
Simple block is as suggest by taifun
Read file
list from table text ( thi will convert the while csv as a list) then by using select list item list parse into separate lists.
Thanks for the links and ideas.
I've been googling this for some time (and even looked here) and just couldn't seem to find something that matched. I was even at the point where I was about to just read the file as text and implement my own splitting and sorting routine! But I knew there had to be something easier so I just avoided doing it.
Now I get it... the index doesn't always relate to the item itself but can be either the column or the row...