How can you store values in App Designer like you can in GUIDE?

Hello,
Im trying to store some variables in App Designer like I can in GUIDE using handles. In GUIDE for example, I could do:
x = 123
handles.x = x;
and use handles.x anywhere I send handles. I tried to do the same in App Designer the snippet below, but it errors:
x = 123;
app.x = x;
Any advice is greatly appreciated.
Thanks!

 Respuesta aceptada

Geoff Hayes
Geoff Hayes el 6 de Mayo de 2020
Ruger28 - you probably want to use properties. See Share Data Within App Designer Apps for details.

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Centro de ayuda y File Exchange.

Productos

Versión

R2019b

Preguntada:

el 6 de Mayo de 2020

Comentada:

el 6 de Mayo de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by