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

ID: Q98357

2.50 | 2.50a WINDOWS | MS-DOS kbenv kbprg kbfixlist kbbuglist

The information in this article applies to:

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

Last Reviewed: September 22, 1997