/Set the results you want into variables (possibly with a timed unset) in your on *:DIALOG:dname:close:*: event, or your OK button sclick event, but make sure they are unset if you cancel.