WKen
1
Dialog.Open()
result is always empty.
var dlg = DOpus.dlg;
//var target = dlg.GetString("Input target path", "D:\\"); // 0 or 1
var target = dlg.Open("", "", DOpus.listers(0).activetab, "Folder"); // 0
DOpus.Output(dlg.result)
do
{
msg = dlg.getmsg();
DOpus.Output(dlg.result)
} while (msg == true);
Leo
2
The Open method returns a result directly.
WKen
3
Ok, but If I close the dialog, the if statement cannot determine the result.
target
always seems to be True
.
var dlg = DOpus.dlg;
var target = dlg.Open("", "", DOpus.listers(0).activetab, "Folder");
if (!target) DOpus.Output("bye")
else
DOpus.Output(target)
Leo
4
Check target.result
. Details are in the docs for the Open method.
WKen
5
Oops, this is different from dlg.GetString("Input target path", "D:\\");
, so I didn't look closely.