new_filedlg


The new_filedlg function is a non-class version of the CFileDlg:new method which creates and returns a new CFileDlg object. This class creates a standard Open or Save dialog for gathering file names.

Syntax

F = new_filedlg()

bullet.gif    F is returned as a new CFileDlg object.

bullet.gif    On failure, nil is returned.

Example

The following script creates a CFileDlg object and gets file names to open:

F = new_filedlg()

-- Create a new CFileDlg object, F

sName = F:Open("Open File")

-- get file names using dialog title "Open a File"

    ...

-- do something with the files

F:delete()

-- delete the object when no longer needed

Related Topics

CFileDlg class, new, delete, Open


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics, Inc. All Rights Reserved.