• Welcome to Valhalla Legends Archive.
 

saving a listview

Started by blinkdude, July 12, 2003, 02:05 AM

Previous topic - Next topic

blinkdude

im making a shitlist wiht a list view so i  can edit it when i want to and stuff like that i was wonder how i would save my list to a txt file in my App.path like my .ini files save to and how i go about doing this  "Put 1, , lstshit.List" or should i save it a differnt way?


Open "C:\shitlist.txt" For Binary As #1
Put 1, , lstshit.Text
Close #1
<Total-Assault@Azeroth> WTF IS THIS CLAN A BUNCH OF NERDS?
<Yoni[vL]@Azeroth> Yes.
<Grok> Yes.
<[vL]Kp> You sound surprised.
<Total-Assault> at least they admit it
&

Eternal

Open App.Path & "TextFileName.txt" For Output As #1
   For i = 1 To ListView1.ListItems.Count
       Print #1, ListView1.ListItems(i).text
   Next i
Close #1


That's a pretty simple way of doing it...
^-----silly Brit
-----------------------------
www.brimd.com

blinkdude

<Total-Assault@Azeroth> WTF IS THIS CLAN A BUNCH OF NERDS?
<Yoni[vL]@Azeroth> Yes.
<Grok> Yes.
<[vL]Kp> You sound surprised.
<Total-Assault> at least they admit it
&