I'm still having trouble with list boxes

I can't seem to save information stored in a list box correctly. When I save on exit of the program the previous file is overwritten (which I expect) but the first item in the list box is always overwritten by the first storing only one name in the list box. I have checked all my varibles and they seem to be fine and i can save data correctly from text boxes and labels ok. I just can't figure it out. A piece of sample code would help me out a lot. Thanks

Comments

: I can't seem to save information stored in a list box correctly. When I save on exit of the program the previous file is overwritten (which I expect) but the first item in the list box is always overwritten by the first storing only one name in the list box. I have checked all my varibles and they seem to be fine and i can save data correctly from text boxes and labels ok. I just can't figure it out. A piece of sample code would help me out a lot. Thanks: [code]Open "filename" For Output As 1For I = 0 To ListName.ListCount - 1 Print #1, ListName.List(I)NextClose[/code][code]Open "filename" For Input As 1Do Until EOF(1) Line Input #1, T List1.AddItem TLoopClose[/code]Not sure what you meant by "...first item in the list box is always overwritten by the first storing only one name in the list box...", but that code should help you out.