Filter löschen
Filter löschen

Help with edit text GUI

2 Ansichten (letzte 30 Tage)
aurc89
aurc89 am 25 Aug. 2014
Kommentiert: Ben11 am 25 Aug. 2014
Hi! I created a Matlab GUI , where an 'Edit text' command is placed. It is initially empty. At a certain point, when I load a number, it is visualized in this 'Edit text' box, with a command like this
set(handles.edit3,'String',num)
where 'num' is the variable associated to the number. Then, when I press another button, I want this Edit text box to be empty again . How can I set this instruction ?

Akzeptierte Antwort

Ben11
Ben11 am 25 Aug. 2014
At the beginning of this button's callback, use something like this:
set(handles.edit3,'String','')
which displays an empty string
  2 Kommentare
aurc89
aurc89 am 25 Aug. 2014
Thanks !
Ben11
Ben11 am 25 Aug. 2014
You're welcome!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by