AskFileName cancel button

Started by erezpaz, September 23, 2016, 09:40:21 AM

Previous topic - Next topic

erezpaz

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

td

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. 
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade