Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Why Does the Field Get Unexpectedly Deleted?

2 vues (au cours des 30 derniers jours)
Rightia Rollmann
Rightia Rollmann le 16 Mar 2017
Clôturé : MATLAB Answer Bot le 20 Août 2021
I have made a GUI in GUIDE. When myfun1 gets executed inside myfun2, suddenly field A gets deleted from variable handles.
WHY? What is the solution?
function myfun1(hObject, eventdata, handles)
handles.A = 1;
guidata(hObject, handles);
end
function myfun2(hObject, eventdata, handles)
myfun1(hObject, eventdata, handles);
end

Réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by