Results 1 to 11 of 11

Thread: [RESOLVED] Problem accessing a nested collection

Threaded View

  1. #8

    Thread Starter
    Junior Member
    Join Date
    Jan 2010
    Location
    The USA's Oldest City!
    Posts
    28

    Re: Problem accessing a nested collection

    Quote Originally Posted by techgnome View Post
    huh... ok... can you post the actual code... doesn't necessarily need to be everything... but the important bits of it... where you're getting the collection, the count, then your loop... clearly there's something amiss.

    -tg
    Its prettty simple what I am doing.
    I have;

    dim FS as FileSystemObject (and of course a reference to it)
    dim FSFolder as object
    dim sTempstr as String

    sTempstr = "Whatever path I want to pass it"
    set FSFolder = fs.GetFolder(sTempstr) ' A method of the base FSO

    This returns all of the sTempstr folder plus any files contained in it, and its subfolders and files, plus their sub-folders and files underneath that.

    Once you have that, try to access any of the info from FSFolder.subfolders(index).files.count or path, or name or any of the fields.... you'll see them in the watch window.

    I guess I am doing something wrong... I dont see it!
    Last edited by GaryBouchard; Feb 7th, 2011 at 03:58 PM. Reason: Fully qualified

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width