The information in this article applies to:
SYMPTOMSThe File() function documentation states that you can include a path with the file name to search for a file in a directory or on a drive other than the current directory or drive. Under certain conditions the File() function can return .t. even though the file does not exist in the path given in the parameter. CAUSEIf the file exists along the Visual FoxPro path, the function returns .t.. RESOLUTIONUse the Adir() function. Supply the file name you are checking for as the second parameter in the Adir() function. The Adir() function returns 1 if the file is found.
MORE INFORMATIONSteps to Reproduce BehaviorCopy the following code into a file and run the program:
Additional query words: KBDSE
Keywords : kbVFp600 kbXBase kbGrpFox kbDSupport kbCodeSnippet |
Last Reviewed: October 26, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |