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?


Printinstead of using undocumented feature. – Kuba Dec 22 '16 at 13:01Printis 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? – yode Dec 22 '16 at 13:18SystemDialogInput["Directory"]solve my question almost.but I will wait a solution with aWaitUntilin this post. :) – yode Dec 22 '16 at 13:37