Effacer les filtres
Effacer les filtres

check "edittext" empty or not

6 vues (au cours des 30 derniers jours)
Rahma Yeni
Rahma Yeni le 21 Avr 2012
Commenté : sathya ganesan le 28 Jan 2021
Hello all.. ^^ I want to ask, how to check an "edittext" containing value or not..?? Thank you.. :)

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Text Data Preparation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by