4D v16.3

VOLUME LIST

Home

 
4D v16.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 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 atVolumes you want to display the list of the volumes defined or mounted on your machine, you write:

 Case of
    :(Form event=On Load)
       ARRAY TEXT(atVolumes;0)
       VOLUME LIST(atVolumes)
 
  //...
 End case



See also 

DOCUMENT LIST
FOLDER LIST
VOLUME ATTRIBUTES

 
PROPERTIES 

Product: 4D
Theme: System Documents
Number: 471

This command can be run in preemptive processesThis command has platform-specific behaviorThis command has platform-specific behavior

 
HISTORY 

Created: 4D v6

 
TAGS 

Volume

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)