Hackers Guide to Visual FoxPro 7.0
Directory, Display Files, List Files
Three nearly synonymous commands to list files meeting specified file skeletons, similar to the DOS DIR equivalent, but with Visual FoxPro-specific extensions.| Usage | DIRECTORY | DISPLAY FILES | LIST FILES [ ON cDriveLtr ] [ [ LIKE ] [ cPath ] [ cFileSkeleton ] ] [ TO PRINTER [ PROMPT ] | TO FILE cFileName [ ADDITIVE ] ] |
| | Unlike all the other DISPLAY/LIST commands, the FILES list lacks a NOCONSOLE option. In VFP 7, this bug is worse than ever because the Quick Info for the command shows a NOCONSOLE clause, but it doesn't work. Worse, if you omit the path and file skeleton, but include NOCONSOLE, the command looks for tables called NOCONSOLE. |
The output options, TO PRINTER and TO FILE, work similarly to the remainder of the DISPLAY and LIST commands. The DISPLAY and LIST versions have the usual differences. DIR works like DISPLAY FILES.
| Example | DISPLAY FILES ON C LIKE \VFP\SAMPLES\MAINSAMP\DATA && this is DIR C:\VFP\SAMPLES\MAINSAMP\DATA && the same as this |
| See Also | ADir(), Directory(), Display and List, File() |
View Updates
Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.
Категории