How to show data in a textField on app designer?

9 ビュー (過去 30 日間)
Biza Ferreira
Biza Ferreira 2022 年 9 月 13 日
コメント済み: Kevin Holly 2022 年 9 月 14 日
Hello fellows,
I have a few problems in a app designer, a try to show data in a textArea component,but without success, can anyone help me to solve this issue?
Thanks in advance
function OpenFile(~, FilePath, FileName)
app.TextArea.Text = 'testing';
end

採用された回答

Kevin Holly
Kevin Holly 2022 年 9 月 13 日
It should be
app.TextArea.Value = "testing";
  4 件のコメント
Biza Ferreira
Biza Ferreira 2022 年 9 月 14 日
Hello Kevin,
Thanks for your consern an help, i have made a mistake, but i have read some documentation and I found my fault, but all because your example. So the textField only update if the user press a button or made a command to call another function who as responsible to update the fields. So initialy in the function where I pass the parameter's I dont declare the parameter "app", this way the function dont found the scope and this way dont appear anything in text field desired.
Thanks again, cheers
Kevin Holly
Kevin Holly 2022 年 9 月 14 日
If you could accept this answer, I would appreciate it.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by