app designer private and public properties?

Hi,
In app designer, if i am going to exectute come functions within the app, can I just use private properties? or do I need to use public ones to be shared outside of the app, i.e. within these functions?
Thanks

 Respuesta aceptada

TADA
TADA el 2 de En. de 2020

1 voto

If these functions are methods of your app, you can use private properties from within these methods, but if they are functions outside this app, that is in other .m files (different class, or static functions, makes no difference) you'd have to use public properties

4 comentarios

Abdelrahman Taha
Abdelrahman Taha el 2 de En. de 2020
That's really helpful. Thanks for your help.
TADA
TADA el 2 de En. de 2020
Cheers
Isabelle Lorei
Isabelle Lorei el 7 de Jun. de 2022
My unterstanding:
The reason to define Properties is to create a variable to share and store data between callbacks and functions.
If I just need the data to be shared between callbacks and functions inside one app, I can use private properties.
But if I need the data to be shared between several apps, I need public properties.
Right?
TADA
TADA el 7 de Jun. de 2022
Yes

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Etiquetas

Preguntada:

el 2 de En. de 2020

Comentada:

el 7 de Jun. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by