GetDisk

Description:

baGetDisk displays a directory dialog box and returns the folder selected.

Platforms:

Windows and Macintosh

Usage:

Result = baGetDisk( Disk, Instruction, Flags, X, Y )

Arguments:

String, string, integer, integer, integer.
Disk is the initial disk to be selected in the dialog.
Instruction is the instruction to display to the user.
Flags modifies the behaviour of the dialog.
X and Y are the position of the dialog.

Returns:

String.
Returns the name of the disk selected, or an empty string if the user cancels the dialog.

Examples:

Director:
disk = baGetDisk( "c:\", "Select a disk", 0, 50, 50 )

Authorware:
disk := baGetDisk( "c:\\", "Select a disk", 0, 50, 50 )
 

Notes:

No flags are currently defined.

The X and Y arguments specify the position of the dialog in screen pixels. Set X to -2 to center the dialog on the screen. Centering the dialog on the stage is not implemented. Using -3 will position the dialog at the position it was last displayed.
 

See also:

baGetFolder
baGetFilename