Problem sharing data between 2 apps in app designer

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Develop 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