PSS ID Number: Q113318
Article Last Modified on 08-4-2000
Under certain rare circumstances, the ADIR() function may erroneously report that a file exists when it does not.
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.
CREATE TABLE test.dbf (name C(20))
?FILE('test.dbf') && Correctly returns .T.
?FILE('test.dbf' + CHR(201)) && Correctly returns .F.
?ADIR(x, 'test.dbf' + CHR(201)) && Correctly returns 0
USE
RENAME 'test.dbf' TO 'test.dbf,.dbf'
?FILE('test.dbf,.dbf') && Correctly returns .T.
?FILE('test.dbf,.dbf' + 'X') && Correctly returns .F.
?ADIR(x, 'test.dbf,.dbf' + 'X') && Incorrectly returns 1
NOTE: In the last line above, the ADIR() function returns a 1, indicating
that it found a file with the name "test.dbf,.dbfX".
Additional query words: VFoxMac FoxMac buglist2.50b buglist3.00b akz
Keywords:
Issue Type: kbbug
Technology: kbHWMAC kbOSMAC kbVFPsearch kbAudDeveloper kbFoxproSearch kbFoxPro250bMac kbVFP300bMac