hey, i am just wondering how you retrive data from a dialog created with $dialog , like $input or $? returns the data in an edit box or on whatever button was pressed, but if i create a dialog with the $dialog identifer, can i retrieve that data when the ok button is pressed, the data in all the edit boxes/listboxes or whatnot, or would i have to go about it in the actual dialog coding events
eg:

on dialog.......sclick:okbuttonID:{
if ($dialog(dialog.name).modal == $true) {
then do this for what i want with the edit boxes and so on
}
}

am i heading the right way with how you would get data it when created like that, or is there another way that wors like $input or whatever..?