Problems in using Listbox... lazarus / 9-Editor ---------------------------------------------------------------------- LongNight · 2008-01-30 19:49 I am new in using Lazarus and i got some simple problems when using the listbox ... i have no idea how to solve it , help! 1. How to save the data in listbox to a txt file? 2. How to delete selected column in the box? ur... also , Is there any method to know the path of some files at the same time when using th TOpenDialog? please help :oops: ---------------------------------------------------------------------- OnixJr · 2008-01-30 19:56 Hi... Welcome, first of all... 1 - Use ListBox1.Items.SaveToFile('C:\test.txt'); 2 - Use ListBox1.Items.Delete(ListBox1.ItemIndex); Thanks! Júnior G. ---------------------------------------------------------------------- LongNight · 2008-01-30 20:31 Thank you very much! Can i ask another question? i don't know how to store one column of the listbox into a string value ... How can a string value read the items of the Listbox line by line? ---------------------------------------------------------------------- OnixJr · 2008-01-30 20:53 OK... One column or line? MyString := ListBox.Items[1]; This get the second item from list (the first is 0) and store them in string MyString... in loop... for i := 0 to listbox1.Items.Count - 1 //start in 0, don't forget MyString := ListBox1.Items; Thanks! Júnior G.