Re: FileListBox
From: Martin Nemzow (mnemzow_at_netrox.net)
Date: 11/08/04
- Next message: Bob O`Bob: "Re: Style question - lengthy nested If-Then's"
- Previous message: Martin Nemzow: "XP and menu accelerator key visibility"
- In reply to: David: "FileListBox"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 8 Nov 2004 14:50:09 -0500
Try Step -1 to go backwards through the list, collection, array, etc...
Problem is you are forcing a change in the index as alter names and go
forward.
"David" <drs58@msn.com> wrote in message
news:c5e774e3.0411071048.ab218f4@posting.google.com...
> I'm trying to change the names of files in a particular directory.
> After specifying the directory, the user specifies a search string to
> find in the filenames along with the string to replace it with. Based
> on this, I want to cycle through a FileListBox, looking at each
> filename, changing the name of those files that are found to contain
> the search string. (I'm using the FileListBox since I can't locate a
> function that returns a collection of filenames from a directory.)
>
> I'm having a problem figuring out how to cycle through the file list.
> FileListBox. The following generates an 'Improper property array
> index' error:
>
> filFileList.ListIndex = i (i is a couter incremented within a for/next
> loop)
>
> Thanks,
> David
- Next message: Bob O`Bob: "Re: Style question - lengthy nested If-Then's"
- Previous message: Martin Nemzow: "XP and menu accelerator key visibility"
- In reply to: David: "FileListBox"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|