BUG: FULLPATH() Does Not Work Correctly in FoxPro for UNIXLast reviewed: January 12, 1995Article ID: Q124780 |
The information in this article applies to:
SYMPTOMSThe FULLPATH() function does not return the correct relative paths.
WORKAROUNDDo not pass the reference to a parent directory by using ../ or ..\ in the path of the file passed to the FULLPATH() function. See the example in the "Steps to Reproduce Problem" section in this article.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONBecause the FULLPATH() function is not returning the correct value, the screen code generator will not generate the right code for opening databases and indexes, in some cases. To ensure that the code is generated correctly, follow these steps:
Steps to Reproduce ProblemIn the FoxPro Command window, type the following commands:
SET DEFAULT TO //usr/lib/FoxPro/sample ? FULLPATH('../dbfs/clients.dbf', ; '//usr/lib/FoxPro/sample/screens/clients.scx')The result printed to the screen is this:
C:\USR\LIB\FOXPRO\SAMPLE\..\DBFS\CLIENTS.DBFThe result should be:
C:\USR\LIB\FOXPRO\SAMPLE\DBFS\CLIENTS.DBFTo obtain the correct result, use the following command:
? FULLPATH('dbfs/clients.dbf', ; '//usr/lib/FoxPro/sample/screens/clients.scx') |
Additional reference words: FoxUnix 2.60 buglist2.60
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |