Operaciones matematicas en pantalla 1 y resultados en pantalla2

Hola, estoy realizando una aplicación con formulas matematicas, a los numeros que introduzca el usuario que al realizar clic en calcular cada resultado salgan en un campo de texto seleccionado para ello en la pantalla 2, ¿como habria que hacer la colocación de bloques para que funcione?

Hello daroca77

Why would you have the User input on one screen and display the results on another? That's not User friendly and also complicates your code.

bueno hay mucha entrada de datos y todo en una pantalla no se si me cabria, lo habia planteado hacer asi, sin saber que se complicaba según me dices,

Well, the Screen scrolls, so have the results area at the top of the screen and input below it. Hard to give the best advice when we can't see your GUI layout.

The complication is that the Screens are actually unrelated - you can think of them as being separate Apps - they each occupy their own allocation of memory. If it is absolutely necessary to switch screens to display results, use virtual screens - everything in the same memory allocation.

When we define virtual screens, we use one 'real' App Inventor Screen (most often Screen1). Screen-sized Vertical Arrangements on it are displayed/hidden as required - they are the Virtual Screens. This is generally a better approach for multi-screen Apps, they share data without having to "pass" it between screens and it also reduces code duplication, making the App more efficient and the code easier to follow if you have to return to it at a later date.
So, instead of separate "houses", virtual screens are "rooms" of the same "house".

vale gracias, he estado mirando lo de pantallas virtuales y creo que si puede servir, voy a ver como lo cambio, para poner asi.
un saludo

1 Like