PreviousNextIndex

OS-DRIVES function


(Windows only)

Returns a comma-separated list of available drives.

Syntax

OS-DRIVES 

Example

The following procedure populates a selection list with the output of the OS-DRIVES function, and then displays the list and prompts the user to select a drive. The procedure then informs the user that subsequent writes will be to the selected drive.

r-os-drv.p
DEFINE VARIABLE drives AS CHARACTER NO-UNDO LABEL "Select a Drive" 
  VIEW-AS SELECTION-LIST INNER-CHARS 3 INNER-LINES 5. 
DEFINE FRAME f 
  drives. 
drives:LIST-ITEMS = OS-DRIVES. 
UPDATE drives WITH FRAME f. 
MESSAGE “Files will be written to drive” INPUT drives:SCREEN-VALUE. 

Note

On platforms other than Windows, OS-DRIVES compiles and executes, but returns the empty string ("").


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex