How can i save more than one list

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vbbeginner
    New Member
    • Jan 2008
    • 9

    How can i save more than one list

    How can i save more than one list in the same file and load them.?
  • vdraceil
    New Member
    • Jul 2007
    • 236

    #2
    what do u mean by a 'list'?

    Comment

    • vbbeginner
      New Member
      • Jan 2008
      • 9

      #3
      i mean listbox (items)

      Comment

      • vdraceil
        New Member
        • Jul 2007
        • 236

        #4
        So,before closing your application,you want to save the contents of all your list boxes in a single file and load them back into the respective list boxes on starting the application?Cor rect?

        Assuming i am correct,

        Just save the contents of the list boxes in a single text file.Like,
        a.b.c*d.e.f.g*i .j.k*........
        here a,b,c belong to listbox1,d,e,f, g belong to listbox2 and so on..
        all you have to do is open the text file and read its characters one by one.
        if you encounter a '.',the characters following it must be included in a new listindex of the current listbox.
        if a '*' is encountered,the following characters must be included to listindex=1 of the next listbox.

        Comment

        Working...