I have a such function:
fun := DynamicModule[{from,
to}, {FileNameSetter[Dynamic[from], "Directory",
Appearance -> "from where"],
FileNameSetter[Dynamic[to], "Directory", Appearance -> "to where"]}
WaitUntil[And @@ {ValueQ[from], ValueQ[to]}];
Print[StringJoin[from, to]]]
I mean,When I run the fun
,I want to print that folder string after I select that two folder,but why this code cannot work?Any bug in my code?Or how to implement it?
Print
instead of using undocumented feature. $\endgroup$Print
is other something in my real qeustion.And I have tried yourButton
,it work too,but I want to make this two part in a custom function.Do you think it is feasible?And I should provide all code? $\endgroup$SystemDialogInput["Directory"]
solve my question almost.but I will wait a solution with aWaitUntil
in this post. :) $\endgroup$