From: Maxx Chatsko on
Hello all,
How can I force the user to respond to an errordlg() box? wait? gcf?
Thanks
Maxx
From: Andy on
"Maxx Chatsko" <chatskom(a)chemimage.com> wrote in message <i2ptgo$g8a$1(a)fred.mathworks.com>...
> Hello all,
> How can I force the user to respond to an errordlg() box? wait? gcf?
> Thanks
> Maxx

doc errordlg

% read the Note about modal dialog boxes
From: Walter Roberson on
Maxx Chatsko wrote:

> How can I force the user to respond to an errordlg() box? wait? gcf?

ed = errordlg('Whatever the message');
waitfor(ed);


ed = errordlg('Some timed message');
uiwait(ed, 15); %15 seconds
if ishandle(ed); close(ed); end %it timed out instead of being closed