CFileDlg:new
The new method constructs a new instance of a CFileDlg object. The CFileDlg class creates a standard Open or Save dialog for gathering file names.
F = CFileDlg:new() where F is the new CFileDlg object. If a new CFileDlg cannot be created, nil is returned.. |
The following script creates a CFileDlg object and gets the names of files 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 |