D dgoss Member Licensed User Longtime User May 17, 2013 #1 I Have A listview(with2 labels and bitmap). i know how to save the listview to file, but how do i save listview(with 2 labels and bitmap) to file and retrieve text and bitmap to view in a listview. many thx in advance.
I Have A listview(with2 labels and bitmap). i know how to save the listview to file, but how do i save listview(with 2 labels and bitmap) to file and retrieve text and bitmap to view in a listview. many thx in advance.
Erel B4X founder Staff member Licensed User Longtime User May 17, 2013 #2 How do you add the items? Where does the data come from? Upvote 0
D dgoss Member Licensed User Longtime User May 17, 2013 #3 Hi Erel (this is for testing only and of coarse learning). at the moment i have 1 listview(2labelsand bitmap) 2 button 2 pictures in files tab the buttons add date/time and a picture(different pics for each button) i have been using this code to write singleline listview Code: Copy s = DateTime.now DateTime.DateFormat = "yyyyMMdd" dT = DateTime.Date(s) Dim MyList As List Dim li As Int MyList.Initialize For li = 0 To ListView1.Size -1 MyList.Add(ListView1.GetItem(li)) Next File.WriteList(dir,dT & ".Txt",MyList) MyList.Clear Upvote 0
Hi Erel (this is for testing only and of coarse learning). at the moment i have 1 listview(2labelsand bitmap) 2 button 2 pictures in files tab the buttons add date/time and a picture(different pics for each button) i have been using this code to write singleline listview Code: Copy s = DateTime.now DateTime.DateFormat = "yyyyMMdd" dT = DateTime.Date(s) Dim MyList As List Dim li As Int MyList.Initialize For li = 0 To ListView1.Size -1 MyList.Add(ListView1.GetItem(li)) Next File.WriteList(dir,dT & ".Txt",MyList) MyList.Clear
Erel B4X founder Staff member Licensed User Longtime User May 17, 2013 #4 You can use AddTwoLinesAndBitmap2 and add a Type with all the required information. You will then be able to retrieve this information with ListView.GetItem. Upvote 0
You can use AddTwoLinesAndBitmap2 and add a Type with all the required information. You will then be able to retrieve this information with ListView.GetItem.
D dgoss Member Licensed User Longtime User May 19, 2013 #5 thx Erel. i never played with Type before. It's nice to learn something new Upvote 0