Graphisoft®

Dialog ManagerVersion: 2.0

FileDialog::GetSelectedFile

Returns the file selected by user.

const IO::Location & GetSelectedFile (UIndex index = 0) const;

Parameters

index
Zero based index of selected files.

Return Value

Location of the selected file.

Example

    DG::FileDialog dlg (DG::FileDialog::OpenMultiFile);
    if (!dlg.Invoke ())
        return false;
    int count = dlg.GetSelectionCount ();
    for (int n = 0; n < count; n++) {
        IO::File file (dlg.GetSelectedFile (n));
    }