- Get the text using get function
- Check if the text is empty or not
how check null value the text input at GUI?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
i have edittext in GUI and want to check the value if edittext is empty, message warning will show, but if edittext have value, the program will running please help
0 commentaires
Réponses (1)
Piyush Kumar
le 26 Nov 2024
Hi,
To check if an EditText in a MATLAB GUI is empty and show a warning message if it is, you can use the following steps -
text = get(handles.editText, 'String');
if isempty(text)
% Show the warning
else
% Proceed with the program
end
0 commentaires
Voir également
Catégories
En savoir plus sur Argument Definitions 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!