PRB: ADIR() Function Returns Incomplete Information

ID: Q98360

The information in this article applies to:

SYMPTOMS

The ADIR() function returns nothing for the volume label of a selected disk.

CAUSE

The volume label for the particular drive consists of a text string that is more than 8 characters in length.

RESOLUTION

Make sure the volume labels on your disk drives contain 8 characters or fewer.

MORE INFORMATION

If you use the following code

   SET TALK OFF
   ? VOLUME('C')                   && Print volume label of drive C

   PROCEDURE volume
     PARAMETER drive
     string = drive + ':'
     DIMENSION temparray(1)
     =ADIR(temparray,(string),'V')
     RETURN temparray(1)

FoxPro 2.5 or 2.5a for MS-DOS will return the following: Additional reference words: FoxDos 2.50 2.50a 2.50b DIRECTORY COMMANDS ARRAY FUNCTION KBCategory: kbprg kbprb KBSubcategory:

Last Reviewed: April 17, 1995