savefiledialog
Shows a save-file dialog.
Syntax
savefiledialog(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
savefiledialog is part of the Dialogs library. Dialog helpers call native Windows pickers. The call blocks until the user chooses a path or cancels.
The change is applied directly to the live target, so later reads observe the updated value.
Example
local path = savefiledialog("Text files (*.txt)|*.txt", "Save config")
print(path)
Notes
- The dialog blocks until the user selects a path or cancels.