DOCUMENT:Q109476 05-FEB-2000 [foxpro] TITLE :BUG: FILE() Returns Erroneous Results PRODUCT :Microsoft FoxPro PROD/VER:MACINTOSH:2.5b,3.0b OPER/SYS: KEYWORDS:kbbuglist ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual FoxPro for Macintosh, version 3.0b - Microsoft FoxPro for Macintosh, version 2.5b ------------------------------------------------------------------------------- SYMPTOMS ======== When you are using the FILE() function in FoxPro for Macintosh and the length of the filename is greater than 27 characters and contains no periods, the return value is FALSE (.F.) even though the file exists. RESOLUTION ========== Ensure that filenames are less than 27 characters or contains a period somewhere in the filename before checking for the file's existence. STATUS ====== Microsoft has confirmed this to be a problem in FoxPro versions 2.5b and 3.0b for the Macintosh. MORE INFORMATION ================ Steps to Reproduce Behavior --------------------------- 1. Give a file a name that is greater than 27 characters. Make sure there aren't any periods in the filename. 2. In the Command Window, type the following: " ? FILE("")" (without the quotation marks) A .F. value will be returned. Additional query words: vFoxMac FoxMac buglist2.50b 3.00b bugl ====================================================================== Keywords : kbbuglist Technology : kbHWMAC kbOSMAC kbVFPsearch kbAudDeveloper kbFoxproSearch kbFoxPro250bMac kbVFP300bMac Version : MACINTOSH:2.5b,3.0b Issue type : kbbug Solution Type : kbpending ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2000.