|
"Sprinceana " <mihaispr@yahoo.com> wrote in message <gpj4u0$olq$1@fred.mathworks.com>...
> How can I attribuate a value stored in edit1 of a form(edit1.fig) to another edit1 of the second form(edit2.fig).
Does anyone know?
I'm using getappdata in edit1 callback for file edit2.fig but isn't working:(.
%Code written in edit2.m associated to edit2.fig
getappdata(0,'contor','contor');
contor is initialised with 100 in first form in pushbutton1 callback:
%This is the code for edit1.m associated to edit1.fig
function pushbutton1_Callback(hObject, eventdata, handles)
contor=100; %initialisation de variable globale contor avec 100 dans l'edit1
set(handles.edit1,'string',100); %mettre en edit1 la valeur 100
|