MATLAB Answers

How to access app details and write app version number into a file?

10 ビュー (過去 30 日間)
I'm trying out functionalities of Appdesigner in order to see it can handle specifications of app I'm designing.
I want my app to include possibility for writing an info file which contains version number of the app. I noticed this is located in Appdesigner in "App details".
My question is, how to access this information in order to write it into a file using a button in the app?
  2 件のコメント
Martti Ilvesmäki
Martti Ilvesmäki 2021 年 6 月 29 日
Thank you, I checked it out. The answer of the question is a MATLAB technical support team provided function which, if I understood correctly, works for shared apps with app installer.
I would like to however, access this information from the app itself if possible. For example, by clicking button "write info file" which would write a .txt or .csv file containing information about the app and the version number.

サインインしてコメントする。

採用された回答

Kishan Dhakan
Kishan Dhakan 2021 年 6 月 30 日
You can use the property app.<your app name>UIFigure.Name to acess the app name and write it to csv or txt using MATLAB functions in the button callback. For example, in your component browser, look for the first component under your app name, it should be the UIFigure. Use app.<thatComponent>.Name to access app name (and similar for other details like version).
  1 件のコメント
Martti Ilvesmäki
Martti Ilvesmäki 2021 年 7 月 5 日
Thank you, this works as a workaround. For example by using app.UIFigure.Tag for version number. Still though couldn't directly access App Details version number.

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by