moronmaster
09-04-2003, 04:24 AM
Hi,
I am using the common dialog control in VB 6.0 and i'd like to figure out how to detect wether the user clicked ok or the cancel button.
MSDN claims that you have to detect this using error traps. But i'd like to avoid this. Is ther a simpler (and more readable) way of doing this?
like :
nRet_Val = commondialog1.ShowSave
If nRet_Val - False then
Exit Sub
Else
'go save your file
End if
Thanks in advance to whoever can offer some help in this.
I am using the common dialog control in VB 6.0 and i'd like to figure out how to detect wether the user clicked ok or the cancel button.
MSDN claims that you have to detect this using error traps. But i'd like to avoid this. Is ther a simpler (and more readable) way of doing this?
like :
nRet_Val = commondialog1.ShowSave
If nRet_Val - False then
Exit Sub
Else
'go save your file
End if
Thanks in advance to whoever can offer some help in this.