check "edittext" empty or not
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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.. :)
0 commentaires
Réponse acceptée
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
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!