check "edittext" empty or not

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

 Respuesta aceptada

Walter Roberson
Walter Roberson el 21 de Abr. de 2012

1 voto

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 comentarios

Jhonatan Hurtado
Jhonatan Hurtado el 18 de Nov. de 2018
Muy buen aporte amigo, la transforme para mi comodidad.
sathya ganesan
sathya ganesan el 28 de En. de 2021
Coding not worked

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Programming en Centro de ayuda y File Exchange.

Preguntada:

el 21 de Abr. de 2012

Comentada:

el 28 de En. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by