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.
F = new_filedlg() F is returned as a new CFileDlg object. On failure, nil is returned. |
The following script creates a CFileDlg object and gets file names to open:
|
-- Create a new CFileDlg object, F |
|
-- get file names using dialog title "Open a File" |
|
-- do something with the files |
|
-- delete the object when no longer needed |
CFileDlg class, new, delete, Open
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.