Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subdirectory listings
Message
From
23/10/2000 22:52:01
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00432711
Message ID:
00433288
Views:
30
>ADIR()

Will work; the disadvantage is that it requires that you give it some flags to include directories, particularly if you need to include system and hidden folders; it returns an array, so that there is a finite upper limit to the number of entries at any level while there is no (realistic) limit to the number of items in an FSO collection. ADIR() runs faster than iterating the collections of an equivalent Folder object, and spinning through an array using a FOR...NEXT loop is much faster than iterating through a collection using FOR...EACH. ADIR() can use a wildcard to restrict which files are returned; the FSO Folder collections don't. OTOH, ADIR() doesn't reveal as much about the items in the array as the FSO File and Folder objects do, either.

It's a matter of what fits the requirements better.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform