|
-
Feb 7th, 2011, 03:57 PM
#8
Thread Starter
Junior Member
Re: Problem accessing a nested collection
 Originally Posted by techgnome
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|