Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get info from file to listbox

Status
Not open for further replies.

osorio

MIS
Jul 8, 2001
7
VE
Hello,
I have a very simple question. How do I get the contents of a file to show up in a listbox? Thank you very much
 
input the data from the file using the regular methods:
open file AS #1 for input
and us either input or line input
then set the row source type to value list
then you can add the fields to the box by setting row source to the values. example code would be:

dim box as combobox, temp as string
open file.txt AS #1 for input
while not eof(1)
temp = temp & input(1, 5) & ";"
wend
box.rowsource = temp
 
sorry works the same way for a listbox just change the combobox to listbox
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top