Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADIR optimization
Message
 
 
To
12/08/2001 19:25:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00542818
Message ID:
00542834
Views:
24
>I am using ADIR to get a specific number of files from a directory based on a criteria. So, ADIR(laFile,gcFat+'thread\*.*') will create an array and I can now use ALEN(laFile,1) to get the file count. However, on big directory this is causing a big array to be created just to get the number of files. How can I optimize that?

lnFiles=adir(laFile,gcFat+'thread\*.*'), e.g. adir returns number of files.

Too bad, you don't have Help installed...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform