Problem sharing data between 2 apps in app designer

1 view (last 30 days)
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.

Answers (1)

Gouri Chennuru
Gouri Chennuru on 16 Dec 2020
Edited: Gouri Chennuru on 16 Dec 2020

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!