Lua:createSelectDirectoryDialog
Jump to navigation
Jump to search
Creates a SelectDirectoryDialog for choosing a directory.
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
SelectDirectoryDialog — The created SelectDirectoryDialog object.
Examples
1 local form = createForm()
2 local dialog = createSelectDirectoryDialog(form)
3 if dialog.execute() then
4 print(dialog.FileName)
5 end