cancel
Showing results for 
Search instead for 
Did you mean: 

Hi, How can I write here (the image below) that if we were on screen1 in touchgfx, function1 would be executed, and if we were on screen2 in touchgfx, another function would be executed?

dibadigital
Associate

0693W00000VO9elQAD.jpg

2 REPLIES 2
MM..1
Chief III

Simply in screen setups modify some global variable and here place if or switch.

Karl Yamashita
Lead III

Use screens transition ends for each screen where x is the screen number, or you can use a useful name.

0693W00000VOB3SQAX.pngIn the Model View you would have to pass an argument to your main application letting it know which screen it is on. Then you can call the appropriate function.

Tips and Tricks with TimerCallback https://www.youtube.com/@eebykarl
If you find my solution useful, please click the Accept as Solution so others see the solution.