FIX: ADIR() Doesn't Return Volume Label in FoxPro 2.5

Last reviewed: September 22, 1997
Article ID: Q98357
2.50 | 2.50a WINDOWS | MS-DOS kbenv kbprg kbfixlist kbbuglist

The information in this article applies to:

  • Microsoft FoxPro for Windows, version 2.5
  • Microsoft FoxPro for MS-DOS, version 2.5a

SYMPTOMS

Using the ADIR() function provides erroneous results when "V" is used in the optional character expression, <expC2>, with a floppy disk drive.

STATUS

Microsoft has confirmed this to be a problem in FoxPro 2.5 for Windows and FoxPro 2.5a for MS-DOS. This problem was corrected in FoxPro 2.5a for Windows.

MORE INFORMATION

The V option is used to return the volume label of the disk in a drive with a particular drive designation. When this option is used with floppy disk drives, however, the volume label is returned as "".

This function works correctly in FoxPro versions 2.0 and 2.5 for MS-DOS.

Steps to Reproduce Problem

  1. Insert a disk into a floppy disk drive.

  2. Use the MS-DOS LABEL command to set a volume label.

  3. In FoxPro for Windows, issue the following code example in the Command window:

          DIMENSION temparray(1)
          =ADIR(temparray,'A:','V')
          DISPLAY MEMORY LIKE temparray
    

The volume label will be returned as "".


Additional reference words: FoxDos FoxWin 2.50 array buglist2.50
fixlist2.50a
diskette
KBCategory: kbenv kbprg kbfixlist kbbuglist
KBSubcategory: FxenvMemory
Solution Type : kbfix


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.

Last reviewed: September 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.