Function ADir() Foundation
Fills a set of arrays with information about a directory.
ADir( [<cFileSpec>], ; [<aFileName>], ; [<aFileSize>], ; [<aFileDate>], ; [<aFileTime>], ; [<aFileAttr>] ) --> nFileCount
The return value of ADir() is a positive integer corresponding to the number of files which where found matching <cFileSpec>.
The function ADir() exists only for compatibility reasons. Instead of ADir(), the function Directory() should be used. Directory() returns the file information in a two dimensional array.
The environment function ADir() places information about the files of an directory file into a set of arrays. First only <cFileSpec> is passed to the function in order to determine the number of matching files. This number is used to dimension the set of arrays to be filled in a second call to ADir().
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.