How can I clear de value in a edit text box?

I use the edit box to input some values to the program, but after those values are recorded I want to clear the text in the box.
If I use
set(handles.edit1,'String','')
it returns me an error:
Error using handle.handle/set
Invalid or deleted object.
Error in Interfaz>alteraciones_s_p_Callback (line 111)
set(handles.edit1,'String','')
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in Interfaz (line 43)
gui_mainfcn(gui_State, varargin{:});
Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)Interfaz('alteraciones_s_p_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.

1 Comment

What you used is correct. However, somehow you have deleted the graphics object.
Look through your code. If you have any "clear" statements, you should probably get rid of them.

Sign in to comment.

Answers (0)

Categories

Find more on Interactive Control and Callbacks in Help Center and File Exchange

Asked:

on 16 Apr 2019

Commented:

on 16 Apr 2019

Community Treasure Hunt

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

Start Hunting!