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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

listbox

Status
Not open for further replies.

UKmedia

Programmer
Nov 2, 2002
90
Morning,

I have a function that gets all the file names within a dolder and lists this to a listbox.

I already have the function that opens a file and then reformats the date in the file and then saves it in another file format for me. But as there are many files in the folder I need to do this for each file. How can I scroll through the listbox 1 line at a time?

UKmedia productions
 
I'm not sure what you mean.

Are you saying that you start with an empty listbox, loop through a folder, add a new item to the listbox with each iteration, and wish to keep the last item added visible to the user?

Or, are you trying to loop through the contents of your listbox to get the filename from it and do your processing based on that?
 
it would have been"

For each lineItem as string in listbox1.Items
'Do stuff
Next


If [blue]you have problems[/blue], I want [green]source code[/green] AND [green]error messages[/green], none of this [red]"there was an error crap"[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top