K kazem forghani Member Mar 8, 2016 #1 Hello I've saved this way tableview items: Code: Copy Dim items As List = ListContent.Items File.WriteList(File.GetFileParent(URL), File.GetName(URL), items) The stored information is: How can tableview all items saved in the file so that you can read them again and added tableview? I also saw the error was: https://www.b4x.com/android/forum/threads/save-tableview-items-to-file.58121/ Thank you Last edited: Mar 8, 2016
Hello I've saved this way tableview items: Code: Copy Dim items As List = ListContent.Items File.WriteList(File.GetFileParent(URL), File.GetName(URL), items) The stored information is: How can tableview all items saved in the file so that you can read them again and added tableview? I also saw the error was: https://www.b4x.com/android/forum/threads/save-tableview-items-to-file.58121/ Thank you
Erel B4X founder Staff member Licensed User Longtime User Mar 8, 2016 #2 Assuming that the items are strings or numbers (and not nodes) then you can use RandomAccessFile to create a binary file with the data: Code: Copy raf.WriteB4XObject(items, 0) Dim items As List = read.ReadB4XObject(items, 0) You can create a CSV file with StringUtils library. Upvote 0
Assuming that the items are strings or numbers (and not nodes) then you can use RandomAccessFile to create a binary file with the data: Code: Copy raf.WriteB4XObject(items, 0) Dim items As List = read.ReadB4XObject(items, 0) You can create a CSV file with StringUtils library.