I have a text file (tab delimeted) with three 'fields'. I would like to populate a listbox with 3 columns with the contents of the text file. Is that possible, and if it is, how do I do that?
But to answer the question, to get the contents of the file into the listbox, whatever control you choose, you will have to read the file and do AddItem, or the correct method of the control for every line in the file.
OR
If you are using ADO, create a recordset on the file and loop through the recordset.
Thanks for your responses! Because I am in a hurry to get this finished, I used filesystemobject, read every line, and AddItem to the listbox. That worked just fine. But I am curious about the ListView control. I've never worked with it before, and would definitely give it a try.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.