Displaying a File Dialog Box

The Insert | File I/O Command | File Dialog menu option inserts a command into the Edit window that brings up an Open dialog box during execution. This allows the operator to choose a file name at run time. It stores the name of the file chosen in the specified variable.

The syntax of this command in the Edit window is:

<varname> = File/Dialog,<expr>

Descriptions for some of the components of this command are:

<varname>
This is the name of the variable that is set to the name of the file chosen by the user in the file dialog box.

<expr>
This is the text that appears on the title bar of the file dialog box.

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

  1. Open the Edit window.

  2. Place your cursor on the File Dialog command.

  3. Press F9.

More:

Sample Code for File Dialog