View Single Post
Old Mar 8th, 2005, 7:48 PM   #7
chepfaust
Programmer
 
chepfaust's Avatar
 
Join Date: Feb 2005
Posts: 62
Rep Power: 4 chepfaust is on a distinguished road
new question concerning open dialog boxes-

when the user clicks on "cancel" in an "open" dialog box, is there any way to get a value from the user's action?

for example my current problem is that in the dialog box, if the user clicks on a file but clicks on "cancel," the program will continue on as if the user clicked on the file and clicked "open." how do i stop this?

thanks

edit:

actually i figured it out, i think. i've now manually set the commondialogOpen.filename to "" before initiating commondialogOpen.action = 1. i think the problem was that once i used the commondialog, the default filename carried over from the previous time i used the CDL, so my manual setting the filename to nothing would allow me to use a if cdlOpen.filename = "" statement to cancel out of the subroutine.

Last edited by chepfaust; Mar 9th, 2005 at 1:15 AM.
chepfaust is offline   Reply With Quote