- Get the text using get function
- Check if the text is empty or not
how check null value the text input at GUI?
3 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Piyush Kumar
2024 年 11 月 26 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Argument Definitions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!