check "edittext" empty or not

6 次查看(过去 30 天)
Hello all.. ^^ I want to ask, how to check an "edittext" containing value or not..?? Thank you.. :)

采纳的回答

Walter Roberson
Walter Roberson 2012-4-21
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 个评论
Jhonatan Hurtado
Jhonatan Hurtado 2018-11-18
Muy buen aporte amigo, la transforme para mi comodidad.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Text Data Preparation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by