From: Anna Germ on
I just want to find out how to clear the contents of all my
editboxs with the use of a button.
I though of doing this: set(handles.Vgs_from,'String',' ');
and allthough it works if i don't have code written into the
Vgs_from_Callback,when i write my code apears error for
invalid handle.What should i do?


function Vgs_from_Callback(hObject, eventdata, handles)
contents_Vgs_from = get(hObject,'String');
NewVal_Vgs_from = str2double(contents_Vgs_from );
if isnan(NewVal_Vgs_from)
errordlg('You must enter a numeric value','Bad
Input','modal')
end
handles.Vgs_from= NewVal_Vgs_from ;
guidata(hObject,handles);
From: Walter Roberson on
In article <fvp22f$dp6$1(a)fred.mathworks.com>,
Anna Germ <pli9677(a)teiser.gr> wrote:
>I just want to find out how to clear the contents of all my
>editboxs with the use of a button.

set(findobj('Type','uicontrol','Style','edit'),'String','');
--
"You can't hit what you can't see." -- Walter "The Big Train" Johnson