save changes in variable pass in timer function

2 views (last 30 days)
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 Comments
Walter Roberson
Walter Roberson on 20 Jul 2021
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.

Sign in to comment.

Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!