Lua:createOpenDialog
Jump to navigation
Jump to search
<> Reference
function createOpenDialog(owner) : OpenDialog
Creates an OpenDialog for selecting files.
Configure dialog properties before calling execute(). Read the selected value only when execute() returns true.
Function Parameters
| Parameter | Type | Description |
|---|---|---|
| owner | Component | The component that owns the dialog. |
Returns
OpenDialog — The created OpenDialog object.
Examples
local form = createForm() local dialog = createOpenDialog(form) if dialog.execute() then print(dialog.FileName) end
See Also
Main Pages