What everybody has pretty much been saying. You are looping over the "fc" collection. For each iteration of the loop, the next member of the collection is assigned to "f1". What is missing here is the "Next" statement to end the loop, and assumable something in between to do something to or with each "f1" member.
-----Original Message----- From: Robert Everland [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 10:33 AM To: CF-Community Subject: VBSCript question I am pretty good at figuring out syntax for Vbscript, the only question I have is when I get this code Function ShowFolderList(folderspec) Dim f, f1, fc, s, ra, fr Set f = fso.GetFolder(folderspec) set subf = f.subfolders Set fc = f.Files For Each f1 in fc They put the variable f1, now where do they get that? Granted I defined it up there, but where do I find out variabels from a collection. Robert Everland III Web Developer Extraordinaire Dixon Ticonderoga Company http://www.dixonusa.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=5 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=5 Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
