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.

 Akzeptierte Antwort

TAB
TAB am 31 Jan. 2012

1 Stimme

In your button callback function
set(handles.edit1,'String','');
where edit1 is your edit text

2 Kommentare

norfaizayu
norfaizayu am 31 Jan. 2012
thank you.
mohamed abonour
mohamed abonour am 24 Dez. 2016
  • Item onethanks pro :D
  • Item two

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Characters and Strings finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by