jalle007 Active Member Licensed User Longtime User Nov 9, 2013 #1 I populate my listView with objects have type like this: Code: Copy Type Person (iD As Int, Name As String , PhoneNo As String , Photo As Bitmap, sendemail As Boolean, sendsms As Boolean, running As Boolean) and then when I click on that lv item Code: Copy Sub lvAdded_ItemClick (Position As Int, Value As Object) Dim p As Person=Value ToastMessageShow(p.Name & p.PhoneNo,True) ' <- this works Next End Sub Question is : How do I sawe that listview objects to one file and retrieve it later?
I populate my listView with objects have type like this: Code: Copy Type Person (iD As Int, Name As String , PhoneNo As String , Photo As Bitmap, sendemail As Boolean, sendsms As Boolean, running As Boolean) and then when I click on that lv item Code: Copy Sub lvAdded_ItemClick (Position As Int, Value As Object) Dim p As Person=Value ToastMessageShow(p.Name & p.PhoneNo,True) ' <- this works Next End Sub Question is : How do I sawe that listview objects to one file and retrieve it later?
jalle007 Active Member Licensed User Longtime User Nov 9, 2013 #2 and here is the actual problem i have. my object is split into three lines when saved to file. that is actually described in documentation that if object contain CrLf then it will be split into multiple lines What is the best practice then to have list of objects saved to file and retrieved later ? Upvote 0
and here is the actual problem i have. my object is split into three lines when saved to file. that is actually described in documentation that if object contain CrLf then it will be split into multiple lines What is the best practice then to have list of objects saved to file and retrieved later ?
jalle007 Active Member Licensed User Longtime User Nov 10, 2013 #3 I think I found a way to save object list by using RandomAccessFile class. Upvote 0