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.

Syntax

F = CFileDlg:new()

where

    F is the new CFileDlg object.

    If a new CFileDlg cannot be created, nil is returned..

Example

The following script creates a CFileDlg object and gets the names of files to open:

 

F = CFileDlg:new()

-- Create a new CFileDlg object, F

sName = F:Open( "Open a 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

delete

Open