openfilesdialog
Shows a multi-select open-file dialog.
Syntax
openfilesdialog(filter?: string, title?: string) -> nil
Parameters
| Parameter | Type | Description |
|---|---|---|
filter? | string | The filter value used by the call. |
title? | string | The title value used by the call. |
Returns
| Type | Description |
|---|---|
nil | This function does not return a value. |
Description
openfilesdialog is part of the Dialogs library. Dialog helpers call native Windows pickers. The call blocks until the user chooses a path or cancels.
The operation is performed immediately using the arguments supplied at the call site.
Example
local files = openfilesdialog("Lua files (*.lua)|*.lua", "Choose scripts")
print(#files)
Notes
- The dialog blocks until the user selects a path or cancels.