How can I call an event Function in AppDesigner
Show older comments
Hello,
I want to call in the startupFcn an Event Function from my Switch. If I set progammily the Value from the Switch to 'Off', they changed only the Value. But I want to call the event Function from this Switch, if I start the App in AppDesigner. How can I do this?
2 Comments
Guillaume
on 2 Apr 2019
Your question is not very clear.
Nonetheless, event functions are just normal functions, you can call them from any other function (as long as you pass it the arguments it requires).
However, it's very unusual to have to call a startupFcn once your app is started. As the name indicates, it's only supposed to be called at the start to initialise the app. If there is part of the startup that you want to repeat at a later time, then you would be better off extracting that repeating part into its own function, that you'd call from the startupFcn and whichever other function you'd want.
Boris Gromann
on 2 Apr 2019
Accepted Answer
More Answers (0)
Categories
Find more on Develop Apps Using App Designer 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!