## Displaying a File Dialog Box

The Insert | File I/O Command | File Dialog menu option inserts a command into the Edit window which will check bring up a file dialog box during execution. This file dialog can be used to allow the part program operator to choose a filename at run time. The name of the file chosen will be stored in the variable specified.

The syntax of this command in the Edit window is:

<varname> = File/Dialog,<expr>

<varname> | This is the name of the variable that will be set to the name of the file chosen by the user in the file dialog.
<expr> | This is the text that will appear on the title bar of the file dialog

To access the dialog box associated with this File I / O command:

1. Open the Edit window.

2. Placing your cursor on the File Dialog command.

3. Press F9.

More:

Sample Code for File Dialog