Problem sharing data between 2 apps in app designer

2 ビュー (過去 30 日間)
Juan José Jiménez
Juan José Jiménez 2020 年 12 月 14 日
編集済み: Gouri Chennuru 2020 年 12 月 16 日
Hello everyone,
I have a problem with sharing data between 2 apps in the app designer. The first app is called "appPDDCP", and the second one is called "appPDDCP2". I have 4 variables in 4 diferent edit fields in the first app, so I declared them as global:
global Q
global B
global V
global h
Q = app.EditField_2.Value;
B = app.EditField_12.Value;
V = app.EditField_9.Value;
h = app.EditField_7.Value;
After that, I need to call those specific variables in the second app, so I'm trying it do it like this:
load(Q);
load(B);
load(V);
load(h);
Then, I need to make a math operation and to be placed in a specific editfield, like this:
app.EditField.Value = (162.6*Q*B*V)/(h);
I have no idea why it is not working, so please someone help me, how can I call a specific variable of a specific app to another app in the app designer?
Thank you so much for your attention.

回答 (1 件)

Gouri Chennuru
Gouri Chennuru 2020 年 12 月 16 日
編集済み: Gouri Chennuru 2020 年 12 月 16 日

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by