Clear Filters
Clear Filters

check "edittext" empty or not

6 views (last 30 days)
Rahma Yeni
Rahma Yeni on 21 Apr 2012
Commented: sathya ganesan on 28 Jan 2021
Hello all.. ^^ I want to ask, how to check an "edittext" containing value or not..?? Thank you.. :)

Accepted Answer

Walter Roberson
Walter Roberson on 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 Comments
Jhonatan Hurtado
Jhonatan Hurtado on 18 Nov 2018
Muy buen aporte amigo, la transforme para mi comodidad.
sathya ganesan
sathya ganesan on 28 Jan 2021
Coding not worked

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!