B Branko Milosevic Active Member Licensed User Apr 26, 2017 #1 I have a CustomListView I need to save to read from a file on activity resume and save back to the file on activity pause. Is it possible to use File.ReadList and File.WriteList without going through looping CustomViewList to populate an intermediate list with item values of interest? What I am looking for is to avoid looping through the list. Thanks,
I have a CustomListView I need to save to read from a file on activity resume and save back to the file on activity pause. Is it possible to use File.ReadList and File.WriteList without going through looping CustomViewList to populate an intermediate list with item values of interest? What I am looking for is to avoid looping through the list. Thanks,
Erel B4X founder Staff member Licensed User Longtime User May 2, 2017 #21 Branko Milosevic said: Now to go step further because I have to do the Write very often I was trying to avoid this intermediate list before saving. Click to expand... It will take less than 2ms to create the list. Upvote 0
Branko Milosevic said: Now to go step further because I have to do the Write very often I was trying to avoid this intermediate list before saving. Click to expand... It will take less than 2ms to create the list.
B Branko Milosevic Active Member Licensed User May 2, 2017 #22 Erel said: It will take less than 2ms to create the list. Click to expand... Already implemented and working great. Thanks Erel a lot. This one was educational i've never expected types to be non-primitives. Upvote 0
Erel said: It will take less than 2ms to create the list. Click to expand... Already implemented and working great. Thanks Erel a lot. This one was educational i've never expected types to be non-primitives.