Re: Create, edit file list?
From: Ed (Ed_Millis_at_NOSPAM.Hotmail.com)
Date: 07/01/04
- Next message: Howard Kaikow: "AddFromGuid and Major.Minor version number"
- Previous message: Tony Proctor: "Re: VB appl vs Service on W2K server"
- In reply to: Randy Birch: "Re: Create, edit file list?"
- Next in thread: Randy Birch: "Re: Create, edit file list?"
- Reply: Randy Birch: "Re: Create, edit file list?"
- Reply: Gale Green: "Re: Create, edit file list?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 1 Jul 2004 06:24:12 -0700
Randy - I just redid
http://vbnet.mvps.org/index.html?code/fileapi/recursivefiles_minimal_multipleselective.htm,
which is the one I tried yesterday. Using "Start with Full Compile"
(thanks! I didn't know that was there!), I got an error in Form_Load on the
line Option1(0).Value = True. The error is "Wrong number of arguments or
invalid property assignment."
I think the error has something to do with not creating the option buttons
correctly - I have Option 1 and Option 2, instead of Option 1(0) and Option
1(1). You called for the creation of "two buttons in an option array", and
I don't know what that means, or what the difference between the array and
the "regular" buttons would be.
So it's just me and my learning curve that's making things not work - not
your code. Thanks for the boost - I'll get there some day. 8>)
Ed
"Randy Birch" <rgb_removethis@mvps.org> wrote in message
news:%23fwYUwwXEHA.3044@TK2MSFTNGP09.phx.gbl...
> Which haven't you gotten to work. If there are instructional errors (or
code
> errors) I would appreciate knowing so I can check them out/fix them. And
if
> the instructions are not clear, what needs improving?
>
> For what it's worth, I just built the recursive demo
>
(http://vbnet.mvps.org/code/fileapi/recursivefiles%5Fminimal%5Fmultipleselec
tive.htm)
> from the site code following the instructions there and it worked right
out
> of the box, so to speak. You don't have to create the precise layout ...
> just throw the controls on the form, click the 'copy form code' button,
> paste the code into the general declarations section of the form, and
start
> using Run > Start with full compile to catch any transposition errors
before
> the code is run. The demo found 1,613 files in 0.30 seconds.
>
> --
>
> Randy Birch
> MVP Visual Basic
> http://vbnet.mvps.org/
> Please respond only to the newsgroups so all can benefit.
>
>
> "Ed" <Ed_Millis@NOSPAM.Hotmail.com> wrote in message
> news:ONXRXetXEHA.644@TK2MSFTNGP10.phx.gbl...
> : Thanks for replying, Chris. I've seen those before, but I think they're
> : quite a bit more than I want. (Or can handle right now! I've tried
using
> : some of those codes, but have never been able to make them work, and I
> don't
> : understand enough to know what's wrong.) I apologize for not being more
> : clear with my question.
> :
> : I know (from a book, but haven't done it) that I can list the files and
> : folders on a drive using the DirListBox and FileListBox controls. They
> look
> : easy enough to implement, but - before I spend two days trying to make
> them
> : do something they're not designed for! - can I use them to get the full
> path
> : name of the folder or file showing so I can write that string to a list?
> Or
> : is there a better way (at a beginner level)?
> :
> : I would also want to be able to edit the list, and delete any
file/folder
> : path listed (not Kill the file - sorry again for being unclear). Is
this
> : easier done with a certain file type (Word, Excel, plain text, etc.)? I
> : imagine viewing the list would be a matter of iterating through the
> : paragraphs/rows of the file and creating a list box of the contents. If
I
> : wanted to delete an item from the list, then I suppose I would have to
> grab
> : the row/paragraph number of what I see displayed, and delete that line?
> Am
> : I on the right track? Or heading fast towards a brick wall?
> :
> : Ed
> :
> : "Veign" <NOSPAMinveign@veign.com> wrote in message
> : news:OmH6qCtXEHA.3552@TK2MSFTNGP12.phx.gbl...
> : > Minimal Code for a Single or Multiple File Extension
Inclusive/Exclusive
> : > Recursive Search for Files (single drive)
> : >
> :
>
http://vbnet.mvps.org/index.html?code/fileapi/recursivefiles%5Fminimal%5Fmultipleselective.htm
> : >
> : > Minimal Code for a Single or Multiple File Extension Recursive Search
> for
> : > Files (single drive)
> : >
> :
>
http://vbnet.mvps.org/index.html?code/fileapi/recursivefiles%5Fminimal%5Fmultiple.htm
> : >
> : >
> : > To delete a file look at the 'Kill' Statement
> : >
> : > --
> : > Chris Hanscom
> : > MVP (Visual Basic)
> : > http://www.veign.com
> : > --
> : >
> : > "Ed" <Ed_Millis@NOSPAM.Hotmail.com> wrote in message
> : > news:eG4dc$sXEHA.3420@TK2MSFTNGP12.phx.gbl...
> : > > This is probably basic and simple, but I'm not sure how to do this.
> I'd
> : > > like to create a file list by browsing, like using the Windows
> Explorer.
> : > > I'd want to be able to add the full file path for any file or folder
> : > > selected to a list of some kind (Word, Excel, .txt file?). I'd also
> : need
> : > to
> : > > be able to read the list and selectively delete anything on the
list.
> : > What
> : > > functions and controls should I be looking at?
> : > >
> : > > TIA
> : > > Ed
> : > >
> : > >
> : >
> : >
> :
> :
>
- Next message: Howard Kaikow: "AddFromGuid and Major.Minor version number"
- Previous message: Tony Proctor: "Re: VB appl vs Service on W2K server"
- In reply to: Randy Birch: "Re: Create, edit file list?"
- Next in thread: Randy Birch: "Re: Create, edit file list?"
- Reply: Randy Birch: "Re: Create, edit file list?"
- Reply: Gale Green: "Re: Create, edit file list?"
- Messages sorted by: [ date ] [ thread ]