cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Submit your abstract to the call for content for Discovery Summit Americas by April 23. Selected abstracts will be presented at Discovery Summit, Oct. 21- 24.
Discovery is online this week, April 16 and 18. Join us for these exciting interactive sessions.
Choose Language Hide Translation Bar
hahahaqing
Level II

Pick File/Pick Directory "cancel" button

Hi all,

 

I use Pick File Function and Pick Directory Function in my script. In the pop up window, how could I "stop" the script if I click the "cancel". I know how to stop the script using the cancel button:

 

Button Box( "Cancel", stop_flag = 1 )

 

but this doesn't work for the pop up pick file/pick directory window...

 

Any help would be really appreciated!

1 REPLY 1
txnelson
Super User

Re: Pick File/Pick Directory "cancel" button

Just check on the returned value

names default to here(1);

xx=pickfile();

if( xx == "", stop() );
Jim