WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: erezpaz on September 23, 2016, 09:40:21 AM

Title: AskFileName cancel button
Post by: erezpaz on September 23, 2016, 09:40:21 AM
Hi

I am using AskFileName function to select files.
When the user press on cancel it kill the process and not get back to code.
Can I prevent that and when a user press cancel it will get back to code and return null or 0?

Thanks
Erez
Title: Re: AskFileName cancel button
Post by: td on September 23, 2016, 11:29:50 AM
You can find the discussion of dialog cancel handling  in the Consolidated WIL Help file by referring to  Consolidated WIL -> Reference Guides -> Windows Interface Language Reference -> Things to Known -> Recovering from Cancel. 
Title: Re: AskFileName cancel button
Post by: erezpaz on September 24, 2016, 01:55:14 AM
Thanks!