FoxPro for Macintosh Allows Trailing Spaces in FilenamesID: Q109601 The information in this article applies to:
SUMMARYIn the Macintosh environment, FoxPro allows trailing spaces in filenames. This behavior differs from that of FoxPro for Windows or FoxPro for MS-DOS, which automatically trim the trailing spaces. Trailing spaces in filenames could potentially cause problems in FoxPro for Macintosh and other environments that allow long filenames. Therefore, with the onset of more operating systems that allow long filenames and spaces in filenames, good programming practice would warrant trimming all filenames before actually creating the files.
MORE INFORMATION
Steps to Reproduce Behavior1. Type the following commands in the Command window:
2. Issue the ADIR() function. Note that the return string for this file
NOTE: If this filename was stored in a 10-character database field, there
would be no way of determining exactly how many spaces were after the
filename.
Additional reference words: VFoxMac 3.00b FoxMac 2.50b KBCategory: kbprg KBSubcategory: |
Last Reviewed: June 1, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |