Implemented in version 3.0
The Files collection contains a set of File objects and is usually stored as a property of another object, such as a Folder object.
The following code demonstrates how to get a Files collection and list the contents in the browser.
Dim filesys, demofolder, fil, filecoll, filist
Set filesys =
Set demofolder = filesys.GetFolder("foldername")
Set filecoll = demofolder.Files
For Each fil in filecoll
filist & fil.name
filist = filist &
Returns an integer that tells us how many File objects there are in the collection.
The Item property allows us to retreive the value of an item in the collection designated by the specified
key argument and also to set that value by using itemvalue.
[ = itemvalue]
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.