Microsoft KB Archive/110527: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - """ to """)
 
Line 12: Line 12:
<div id="TitleRow">
<div id="TitleRow">


= <span id="KB110527"></span>PRB: ADIR() in FoxPro for Macintosh Doesn't Return &quot;.&quot; or &quot;..&quot; =
= <span id="KB110527"></span>PRB: ADIR() in FoxPro for Macintosh Doesn't Return "." or ".." =




Line 45: Line 45:
== SYMPTOMS ==
== SYMPTOMS ==


The ADIR() function does not return &quot;.&quot; and &quot;..&quot; when the D option is specified.
The ADIR() function does not return "." and ".." when the D option is specified.


</div>
</div>
Line 64: Line 64:
<br />
<br />
In the Command window, type the following:
In the Command window, type the following:
<pre class="codesample">  =ADIR( myarray, &quot;*.*&quot;, &quot;D&quot; )
<pre class="codesample">  =ADIR( myarray, "*.*", "D" )
   ? myarray(1, 1)
   ? myarray(1, 1)
                 </pre>
                 </pre>
In FoxPro for Windows or FoxPro for DOS, &quot;.&quot; will be returned. In FoxPro for Macintosh, the first file or folder encountered will be returned.
In FoxPro for Windows or FoxPro for DOS, "." will be returned. In FoxPro for Macintosh, the first file or folder encountered will be returned.


</div>
</div>

Latest revision as of 10:52, 20 July 2020

Knowledge Base


Article ID: 110527

Article Last Modified on 10/15/2003



APPLIES TO

  • Microsoft FoxPro 2.6a Professional Edition for Macintosh
  • Microsoft Visual FoxPro 3.0b for Macintosh



This article was previously published under Q110527

SYMPTOMS

The ADIR() function does not return "." and ".." when the D option is specified.

CAUSE

The Macintosh file system does not support current folder notation (.) and subfolder notation (..); therefore, they are not returned when this function is executed.

MORE INFORMATION

Steps to Reproduce Behavior



In the Command window, type the following:

   =ADIR( myarray, "*.*", "D" )
   ? myarray(1, 1)
                

In FoxPro for Windows or FoxPro for DOS, "." will be returned. In FoxPro for Macintosh, the first file or folder encountered will be returned.


Additional query words: VFoxMac FoxMac 2.50b 2.50c

Keywords: KB110527