필터 지우기
필터 지우기

save changes in variable pass in timer function

조회 수: 1 (최근 30일)
FRANCISCO JAVIER
FRANCISCO JAVIER 2021년 7월 19일
댓글: FRANCISCO JAVIER 2021년 7월 21일
I want to change the value of a variable ( Precio) that i pass to a function in a timer. In the following call that variable don't update. How can update this variable. Here is the function of my timer and the arguments. Thanks
function leer_ofertas_nuevas( hObject, eventdata,Fecha, Contrato, Zona, Agente, Unidad, Precio, Cantidad, handles)
  댓글 수: 6
Walter Roberson
Walter Roberson 2021년 7월 20일
When Precios is changed in the code, have your code store a copy of it in the UserData property of the timer object, and do not pass it in. Have the function pull the value out of the UserData of hObject.
FRANCISCO JAVIER
FRANCISCO JAVIER 2021년 7월 21일
thanks for your answer

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by