Continue code if Message box OK is pressed
12 ビュー (過去 30 日間)
古いコメントを表示
I have a code in which during middle of the code i have a message box. I want to continue the code only if the user clicks OK to that, otherwise abort the code. i donot want to use 'YES/NO' dialogue.
1 件のコメント
回答 (3 件)
Abdul Asad
2017 年 4 月 20 日
1 件のコメント
Jan
2017 年 4 月 24 日
I've posted the link to the FileExchange, where you can download this function for free. Again and with full link: https://www.mathworks.com/matlabcentral/fileexchange/24871-autowarndlg
Jan
2017 年 4 月 20 日
Opt.Delay = 15;
Opt.Button = {'Ok'}; % 1st is default
[Reply, TimeOut] = AutoWarnDlg({'Question', 'Press Ok to proceed'}, 'Question', Opt);
if ~TimeOut % Dialog closed by time out ==> User did not press Ok:
return;
end
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Downloads についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!