# AG\_GETOFD

> [HTML Version](ag_getofd.htm)

_Reviewed and revised December 2023_

**tab(-10, AG\_GETOFD); path, filter, title, flags, defExt, type; chr(127);**     [Tab(-10,x) Syntax Notes](ag_xxx_syntax-notes.md)

AG\_GETOFD (47) displays a standard Windows open or save file dialog, such as the one shown below (from Windows 10). This operation can only take place on a GUI-enabled client, either ATE or A-Shell/Windows. 

This function has both a [subroutine and a print tab implementation](subroutine-print-pairs.md).

**Parameters**

The parameter formats and values are the same as in [MX\_GETOFD](mx_getofd.md)[xs](keyword-types.md), which is the preferred way of accessing the function. 

**Response**

_paths, flags, filename_ CR

_paths_ may contain one more complete filespecs, separated by chr(10) characters. _filename_ is just the name and extension. See [MX\_GETOFD](mx_getofd.md)[xs](keyword-types.md) for details on the flags.

**Example**

_(./images/ashref_img39.png)_

**See Also**

•	[MX\_GETOFD](mx_getofd.md)[xs](keyword-types.md)

•	[AshExplorer](ashexplorer.md)

**History**

2013 July, A-Shell 6.1.1355:  Filenames containing commas are now quoted; previously they were not, which almost certainly led to incorrect parsing of the response.