how to clear the edit text automatically?

how can i clear the edit text automatically when i push button that i already set to clear the edit text.meaning that, when i push the button, edit text will be clear with word or value in the edit text.

 Respuesta aceptada

TAB
TAB el 31 de En. de 2012
In your button callback function
set(handles.edit1,'String','');
where edit1 is your edit text

2 comentarios

norfaizayu
norfaizayu el 31 de En. de 2012
thank you.
mohamed abonour
mohamed abonour el 24 de Dic. de 2016
  • Item onethanks pro :D
  • Item two

Iniciar sesión para comentar.

Categorías

Más información sobre Characters and Strings en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 31 de En. de 2012

Respondida:

el 14 de Jul. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by