Call function Callback into myfunction

How can i call function Callback UpdateTableButtonPushed in my function MPV_Calc_Draw_Graph?
i try it but i get error

Antworten (1)

VBBV
VBBV am 11 Feb. 2024

0 Stimmen

Use simply the UpdateTableButton inside the function MPV_Calc_Draw_Graph.m file.
app.UpdateTableButton
and rename the function as
function UpdateTableButton(app,event)

5 Kommentare

Trop Trader
Trop Trader am 11 Feb. 2024
Bearbeitet: Trop Trader am 11 Feb. 2024
but there is a problem:
if i push "Update Table" i call TableButtonPUshed..
if i rename it i can't call the function
VBBV
VBBV am 11 Feb. 2024
Can you attach the app file ?
Trop Trader
Trop Trader am 11 Feb. 2024
It's a very broad program... I can't share it
VBBV
VBBV am 11 Feb. 2024
Ok, if you name a pushbutton as UpdateTableButton its corresponing callback function in the app needs to have same name defined within the component methods. Conversly, when the callback function name differs from its GUI component name, it cannot find it and is likely to throw such type of errors.
Trop Trader
Trop Trader am 11 Feb. 2024
Bearbeitet: Trop Trader am 11 Feb. 2024
ok thank

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 11 Feb. 2024

Kommentiert:

Aa
am 14 Feb. 2024

Community Treasure Hunt

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

Start Hunting!

Translated by