CFileDlg:new


The new method creates an instance of the CFileDlg class. You must call new before using any class methods or properties. Note that this object can also be created using the new_filedlg function.. The CFileDlg class creates a standard Open or Save dialog for gathering file names.

Syntax

F = CFileDlg:new()

bullet.gif    Creates a new object.

Example

The following script creates a CFileDlg object and gets file names 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, new_filedlg


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