Click or drag to resize

Functions.ADir Method

Fill a series of Array with directory information.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.07
Syntax
 FUNCTION ADir(
	 cFileSpec AS USUAL,
	 aFName AS USUAL,
	 aFSize AS USUAL,
	 aFDate AS USUAL,
	 aFTime AS USUAL,
	 aFAttr AS USUAL
) AS DWORD
View Source

Parameters

cFileSpec
Type: __Usual
The file specification for the directory search. Besides a file name, this specification may include an optional drive, directory, and extension. The file name and extension may include the standard wildcard characters (* and ?). If you do not specify a drive and directory, this function uses the SetDefault() setting.
aFName
Type: __Usual
The array to fill with the file names matching cFileSpec. Each element will contain the file name and extension as a string, in all uppercase letters.
aFSize
Type: __Usual
The array to fill with the sizes of the corresponding files in aFName.
aFDate
Type: __Usual
The array to fill with the dates of the corresponding files in aFName.
aFTime
Type: __Usual
The array to fill with the times of the corresponding files in aFName, in the form hh:mm:ss.
aFAttr
Type: __Usual
The array to fill with attributes of the corresponding files in aFName. If aFAttr is specified, hidden, system, and directory files are included as well as normal files. If aFAttr is not specified, only normal files are included.

Return Value

Type: UInt32
The number of files matching the directory skeleton described in cFileSpec.///
Remarks
ADir() is a compatibility function and therefore not recommended. It is superseded by the Directory() function, which returns all file information in a multidimensional array.
See Also