Lua:createSelectDirectoryDialog

From Cheat Engine
Jump to navigation Jump to search

<> Reference

function createSelectDirectoryDialog(owner) : SelectDirectoryDialog

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

local form = createForm()
local dialog = createSelectDirectoryDialog(form)
if dialog.execute() then
  print(dialog.FileName)
end

See Also

Main Pages