Hi guys, I'm trying to create a multiwindow app. It's my first app but I'm taking this error. How can I solve it?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
ahmet emin arslan
il 15 Mag 2019
Modificato: Adam Danz
il 15 Mag 2019


3 Commenti
Adam Danz
il 15 Mag 2019
What are the values of app.a, app.b etc. and where do they come from? Somewhere the string "mainApp" is being passed to DialogApp() and the string should be "MainApp" instead.
Risposta accettata
Adam Danz
il 15 Mag 2019
Modificato: Adam Danz
il 15 Mag 2019
I beleive your error is here
% Code that executes after component creation
function startupFcn(app, MainApp, a, b, c)
% Store main app in property for CloseRequestFcn to use
app.CallingApp = mainApp; % <----------------------------- HERE
Should be
app.CallingApp = MainApp; % with capital M
Make that change, save the app, close the app, restart it, and test it. If the problem persists, I'd be glad to look further.
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!