listview help

dgoss

Member
Licensed User
Longtime User
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.
 

dgoss

Member
Licensed User
Longtime User
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
B4X:
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
Top