![]() This approach doesn't work in VFP 6 and later-that call results in a list containing both files and directories. In VFP 5 and earlier, you could get a list of sub-directories for a specified directory by passing the path and a single asterisk for the file name, like this: ADIR(aSubDirs, cPath + "*", "D") To get a list of all sub-directories, pass the empty string for cFileSpec and “D” for cAttributes. These interact with the file specification provided to select a subset of files and/or directories. The D, H and S attributes can be combined into a single attribute string. The number of rows in the resulting array that is, the number of directory entries (files, directories and volume names) for which information was collected. Mac file creator type-ignored in Windows. Put file names into the array using the DOS 8.3 convention. ![]() Put file names into the array in their original case. Put file names into the array in uppercase. Other attributes are ignored if "V" is included. You don't need to specify the root directory for this to work. Include only the volume information for the specified drive. ![]() Include information on sub-directories of the specified directory. Include only file names, excluding directories and hidden and system files. Include all files from current drive and directory.ĬAttributes (string may contain none, any or all of these four) When used with a combination of D, H and S attributes, limits results to files matching specified attributes. cFileSpec can include a drive and directory as well. Only files matching cFileSpec are included. The array into which directory information is dumped. Usage nCount = ADIR( ArrayName [, cFileSpec [, cAttributes Read it as “Array from directory” and it makes perfect sense. This function creates an array containing information about files in a specified directory. Tells you the inside scoop on every command, function, property, event and method of Visual FoxPro. An irreverent look at how Visual FoxPro really works.
0 Comments
Leave a Reply. |