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 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