Yuari
Documentation
Docs/Dialogs/savefiledialog

savefiledialog

Shows a save-file dialog.

Syntax

savefiledialog(filter?: string, title?: string) -> nil

Parameters

ParameterTypeDescription
filter?stringThe filter value used by the call.
title?stringThe title value used by the call.

Returns

TypeDescription
nilThis 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.