4D v14.3

VOLUME LIST

Home

 
4D v14.3
VOLUME LIST

VOLUME LIST 


 

VOLUME LIST ( volumes ) 
Parameter Type   Description
volumes  String array in Names of the volumes currently mounted

The VOLUME LIST command populates the Text or String array volumes with the names of the volumes currently defined (Windows) or mounted (Macintosh) on your machine.

  • On Macintosh, it returns the list of the volumes visible at the Finder level. Only the names of the volumes are returned (for example "MacHD", "BootCamp", etc.).
  • On Windows, it returns the list of the volumes currently defined whether or not each volume is physically present (i.e. the volume E:\ will be returned whether or not a CD or DVD is actually present in the drive). The names of the volumes are followed by the folder separator character ("C:\").

Example  

Using a scrollable area named asVolumes you want to display the list of the volumes defined or mounted on your machine, you write:

 Case of
    :(Form event=On Load)
       ARRAY STRING(31;asVolumes;0)
       VOLUME LIST(asVolumes)
 
  ` ...
 End case

 
PROPERTIES 

Product: 4D
Theme: System Documents
Number: 471

Mac OS specificWindows specific

 
HISTORY 

Created: 4D v6

 
SEE ALSO 

DOCUMENT LIST
FOLDER LIST
VOLUME ATTRIBUTES

 
TAGS 

Volume

 
ARTICLE USAGE

4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)