J Jakob Micheelsen Member Licensed User Dec 16, 2018 #1 How can I make a list with sets of data (e.g. Firstname, Lastname, birthday is saved as 1 entry)?
J Jakob Micheelsen Member Licensed User Dec 16, 2018 #2 Found a way I can add a list as an item in another list B4X: Private lst As List Private item As List item.Initialize item.AddAll(Array As String ("555222", "JAMI", "01 MAY 2006", "James", "", "Michaels", "1", "")) lst.Initialize lst.Add(item) Upvote 0
Found a way I can add a list as an item in another list B4X: Private lst As List Private item As List item.Initialize item.AddAll(Array As String ("555222", "JAMI", "01 MAY 2006", "James", "", "Michaels", "1", "")) lst.Initialize lst.Add(item)
Harris Expert Licensed User Longtime User Dec 16, 2018 #3 Yep, that's one way... and a good one. It all depends on what you are trying to accomplish. You can also use "Type" and add them to a List.. You can also create a "Map" and add them to another Map or a List. There is also JSON - which is great when you want to post data to and from a website (for example). There are hundreds of posts here with examples of each. Use the search engine and study your options (like I have and learned SO much). "Cat Skinning" - there is more than one way in B4X... Upvote 0
Yep, that's one way... and a good one. It all depends on what you are trying to accomplish. You can also use "Type" and add them to a List.. You can also create a "Map" and add them to another Map or a List. There is also JSON - which is great when you want to post data to and from a website (for example). There are hundreds of posts here with examples of each. Use the search engine and study your options (like I have and learned SO much). "Cat Skinning" - there is more than one way in B4X...