GetFilenameEx

Description:

baGetFilenameEx displays a file dialog box and returns the filename selected.

Platforms:

Windows

Usage:

Result = baGetFilename( Operation, StartDir, Filename, Filter, Flags, Instruction, View, NoFolders, X, Y )

Arguments:

String, string, string, string, integer, string, integer, integer, integer.
Operation is the type of dialog to show. Can be "open" or "save".
StartDir is the initial directory. Use "" for the current directory.
Filename is the initial file name to display.
Filter is the type of files to display. Use "" to show all files.
Flags modifies the behaviour of the dialog.
View specifies the initial view of the dialog.
Instruction is the instruction to display to the user.
If NoFolders is true, the folder selection controls will not be shown.
X is horizontal position of the dialog.
Y is the vertical position of the dialog.

Returns:

String.
Returns the file name selected, or "" if the user cancelled.

Examples:

Director:
filename = baGetFilenameEx( "save", "c:\temp", "newfile.txt", "Text files|*.txt", 0, "Save new file", 3, false, 100, 100 )

Authorware:
file := baGetFilename( "open", "c:\\temp", "", "", 0, "Select data file to open", 1, true, -1, 0 )
 

Notes:

This function is an extension of the baGetFilename function. You can specify the View that the dialog box opens in. Can be one of

1

Icon

2

List

3

Report

4

Thumbnail

5

Tile

The other arguments are the same as baGetFilename, except that you can not use a Flags of -1.
 

See also:

baGetFilename
baGetFolder
baGetDisk
baGetFiles