# GET_FILE_BOX File Selection Dialog

> Source: https://manual.pvxplus.com/pxplus-user-guide/graphical-user-interfaces/interface-windows/getfilebox

The **[GET_FILE_BOX](https://manual.pvxplus.com/directives/get-file-box)** directive is used to display a standardized window for entering and selecting a directory or file on the system. On a ***Windows*** system, the standard Windows file selection dialog is used, while the ***WindX*** system and **[iNomads](https://manual.pvxplus.com/inomads/inomads-introduction)** use a dialog box created by a PxPlus utility program. There are different formats of the **GET_FILE_BOX** directive to accommodate selecting a file to **READ** or to **WRITE** or selecting a **DIRECTORY**.

***Example:***

```
GET_FILE_BOX READ X$,"*demo\2022\reports","Select Report File","All Files (*.*)|*.*,Report Files (*.pvr)|*.pvr,","pvr"
```

On a ***Windows*** system, this example displays the following window:

|  |  |
| --- | --- |
|  | ![](https://manual.pvxplus.com/migration-assets/0b4cdace8079207aba5a3de30729da0adf23d5105030f0147903741b86533938.jpg) |

On a ***WindX*** system ***and*** in ***iNomads***, this same example displays the following window (default is ***Detail View***):

|  |  |
| --- | --- |
|  | ![](https://manual.pvxplus.com/migration-assets/7cee8c8367d740dbcd25bbf9545ff361b3485dbdd300e3d3642fd32e4e6bcdaa.jpg)  <br>**Detail View *(WindX)*** |

On a ***WindX*** system ***and*** in ***iNomads***, selecting the View button toggles this display between ***Detail*** and ***Summary View***:

|  |  |  |
| --- | --- | --- |
|  | ![](https://manual.pvxplus.com/migration-assets/aaea1d51692826da7fa005bcd95b39cb938ce587e67edb0a9199ab1762d13a08.png)  <br>**Detail View *(WindX)*** | ![](https://manual.pvxplus.com/migration-assets/6b0ef611f2b55cb06269471b330b3315640bb277894bf819c1a5cbaadf38b637.png)  <br>**Summary View *(WindX)*** |

Selecting the

*Make New Folder* button (***WindX*** and ***iNomads***) displays a separate panel used for entering the name of a *New Folder* within the current *Directory* displayed. After a name is entered, click *OK* to create the new folder or click *Cancel* (or X) to close the *Make New Folder* panel without creating the new folder. If you enter a folder name that already exists, a message will display.

Note 1:  
The Make New Folder button can be suppressed on the *WindX* and *iNomads* GET_FILE_BOX by setting the [%NOMADS'SuppressWindXMakeFolder](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#suppressmakefolder) property to non-zero.  
  
Note 2:  
The [%NOMADS'Gfb_Dir_Tbl$](https://manual.pvxplus.com/nomads-graphical-application/appendix/nomads-variables/overview#gfbdirtbl) property, if present, can contain a semi-colon delimited list of directories to which the user can have access. The system will not allow the user to select any other directories.  
  
(The %NOMADS'SuppressWindXMakeFolder and %NOMADS'Gfb_Dir_Tbl$ properties were added in PxPlus 2019.)

When displayed on a ***UNIX*** system, the ***WindX* GET_FILE_BOX** dialog contains a *Case Insensitive Suffix* check box at the bottom of the panel next to the *Make New Folder* button. By default, this check box is selected. This indicates that any file extensions being applied (as specified in the drop box next to the *File Name* field) are case insensitive.

***Example:***

If the file extension (specified in the drop box) is "Nomads lib (\*.en)", NOMADS library files with extensions of *.EN* (in uppercase) will also display in the list box. If the *Case Insensitive Suffix* check box is ***not*** selected, only files with lowercase *.en* extensions will display.

If the file name is manually typed in the *File Name* field, it should be entered using proper casing so that the desired file is located.

*(The ability to toggle between Detail and Summary View was added in PxPlus 2016 Update 0001.)  
(The Make New Folder button was added in PxPlus 2017.)*  
*(The Case Insensitive Suffix checkbox was added in PxPlus 2019.)*
