Why isn't my app pushbutton able to update an edit field ?

조회 수: 1 (최근 30일)
farzad
farzad 2020년 5월 10일
댓글: Geoff Hayes 2020년 5월 11일
Hi all
I am still trying to solve this problem. I have a push button in my app that has become complex now , and through that, I can not update the values in other edit fields. while when I use other push buttons that are less crowded and more simple, they can update those edit fields. I put the structure of the complex button here, hoping to fin the root cause :
persistent h1
if isempty(h1) || ~isvalid(h1)
h1 = waitbar(0,'message !');
end
if condition
tic
for
try
CatchME
end
end
end
toc
close all
app.AnalysisTimeEditfield.Value= char(duration(0,0,te))
app.WorkingDirectoryEditField.Value=pwd; % none of these two edit fields get updated
  댓글 수: 10
farzad
farzad 2020년 5월 11일
I have written in my question: I have a push button in my app that has become complex now.
Why is this structure behaving differently, is my question
Geoff Hayes
Geoff Hayes 2020년 5월 11일
Without presenting all of your code or providing a working example that demonstrates this behaviour, how can we know exactly why this structure is behaving differently? How about you try removing all of the code from this callback function except for something like
app.AnalysisTimeEditfield.Value= 'hello'
app.WorkingDirectoryEditField.Value=pwd;
What happens?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by