check "edittext" empty or not

1 Ansicht (letzte 30 Tage)
Rahma Yeni
Rahma Yeni am 21 Apr. 2012
Kommentiert: sathya ganesan am 28 Jan. 2021
Hello all.. ^^ I want to ask, how to check an "edittext" containing value or not..?? Thank you.. :)

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 21 Apr. 2012
S = get(TheHandle, 'String');
if isempty(S)
disp('no value');
else
disp('value is present');
end
Note, though, that the value that is present might be all blanks or other whitespace.
  2 Kommentare
Jhonatan Hurtado
Jhonatan Hurtado am 18 Nov. 2018
Muy buen aporte amigo, la transforme para mi comodidad.
sathya ganesan
sathya ganesan am 28 Jan. 2021
Coding not worked

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Programming 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