check "edittext" empty or not

Hello all.. ^^ I want to ask, how to check an "edittext" containing value or not..?? Thank you.. :)

 Accepted Answer

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

Muy buen aporte amigo, la transforme para mi comodidad.
Coding not worked

Sign in to comment.

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!