Re: FileListBox

From: Martin Nemzow (mnemzow_at_netrox.net)
Date: 11/08/04


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



Relevant Pages

  • Re: FileListBox
    ... the user specifies a search string to ... > find in the filenames along with the string to replace it with. ... > on this, I want to cycle through a FileListBox, looking at each ... > I'm having a problem figuring out how to cycle through the file list. ...
    (microsoft.public.vb.general.discussion)
  • FileListBox
    ... the user specifies a search string to ... find in the filenames along with the string to replace it with. ... on this, I want to cycle through a FileListBox, looking at each ...
    (microsoft.public.vb.general.discussion)
  • Re: How to search files for text string most efficiently?
    ... >search a directory for all flies that contain that search string AND display ... >They have windows ME, XP and 2000 systems. ... Each directory would be queried so as to load all filenames in one ... Then using that array, get each filename, get and read by OPEN AS ...
    (microsoft.public.dotnet.languages.vb)
  • Re: FileListBox
    ... > Hi David, ... the user specifies a search string to ... >> find in the filenames along with the string to replace it with. ... >> on this, I want to cycle through a FileListBox, looking at each ...
    (microsoft.public.vb.general.discussion)
  • Re: Mailbox-style directory hashing
    ... what this program does is take a list of filenames ... If you avoid copying around huge lists it might be faster. ... The switching between array and hash references is mostly so ...
    (comp.lang.perl.misc)