Hi,
I am having trouble with something that should be simple as all the tutorials don’t mention it.
I want to create a user creation page where all the different users and their stats are saved in a Json file.
I can add a single row of data, so 1 user. That user gets over written every time I make a new one.
So I could use it to save a score across scenes or variable states etc, just not what I wantit for.
I want to add multiple rows (if you compared it to a dbase).
I tried ggdata (GlitchGames) and loadsave by RobMiracle (https://github.com/robmiracle/Simple-Table-Load-Save-Functions-for-Corona-SDK).
With load save I actually managed to add items that did not overwrite each other, but could not start from a fresh empty file.
I had to pre populate it, and it missed the first index number.
Might be cause I am getting tired. but this is the row of data I want to read for each user:
Users= {}
Users[i]={id=i,firstname=firstName.text,lastname=lastName.text,group=group.text}
There won’t be many users so setting up and SQLlite dbase seems like overkill, but it actually looks easier to me at the moment.
It just bugs me that I am using the two options incorrectly.
Thanks for reading [import]uid: 100901 topic_id: 37108 reply_id: 67108[/import]