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

Kevin Holly,
Thanks for your answer, but doesnt work. The command window give me the follwing response :
app=
struct with fields:
TextArea:[1x1 struct]
Did you overwrite the variable previously?
Can you type:
app.TextArea
I have also attached an app with an example.
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
If you could accept this answer, I would appreciate it.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

릴리스

R2022a

질문:

2022년 9월 13일

댓글:

2022년 9월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by