Advice on maintaining a list

JonPM

Well-Known Member
Licensed User
Longtime User
Hey all, I am looking for advice on maintaining a list. This list will consist of pre-determined members, but will also have the ability to let the user add/remove members from the list. Lastly I will need to be able to update the app and add new members to the list while at the same time not modifying any of the user-added members. This does not need to be updated via cloud, everything will be local. Any advice on where to start? What type of database is ideal for this? Any advice would be greatly appreciated.

Sent from my DROIDX
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
It is hard to tell which option is better here.
One simple solution is to use three list files.
First for the predefined values, second for the user added values and third for the values the user removed.
You can read the first two files with File.ReadList and then read the third file and remove all existing items.

This will allow you to update the predefined list without ignoring the user changes.
 
Upvote 0
Top