if you have this, which is from a dialog button to set a dir


on 1:dialog:buttons:sclick:164: {
set %selectdir $$sdir(c:\path\somepath\subdirpath\,select dir)
}


and you hit cancel when it asks for the dir, the dialog disappears