Need help with delete(h)
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
adi kul
le 20 Juin 2016
Réponse apportée : Geoff Hayes
le 20 Juin 2016
Hello All, i have a message box like this in my GUI:
h=msgbox('Calculation in progress');
Now I have added delete(h); after the calculation stuff in between these two. My script runs for user defined multiple cases. After completing on the loop I have another message box:
h=msgbox('Calculation Completed');
Now the thing is if someone closes the 1st message box by clicking cross on the window the calculation stops with error. Can you suggest me anything?
1 commentaire
Réponse acceptée
Geoff Hayes
le 20 Juin 2016
adi - if you are observing the error
Error using delete
Invalid or deleted object.
because the dialog has already been deleted, then try using the ishandle function to check whether the h is valid or not. For example,
if ishandle(h)
delete(h);
end
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!