Run code with two sections - app designer
조회 수: 2 (최근 30일)
I made an example of a problem I have.
I wrote a code with 2 sections
When I press RUN_1 it calculates X * Y (this is works)
When I press RUN_2 he does not remember the value XY so he does not compute me XYZ (this is not works :( )
Cris LaPierre 2021년 7월 13일
편집: Cris LaPierre 님. 2021년 7월 14일
You need to keep in mind variable scope. All your callbacks are functions. Variables created inside a function are lost once the function terminates. The way around this in app designer is to create an app property to capture these values. You can then access them using the app.varName syntax.
See here for more.