Help with resetting the total sum

hola cuando sumo varios numeros el total no se borra
al hacer otra suma se va acumulando las sumas


Show us your relevant blocks so we might help you better.

Hello Anthony,

in the button Click event (txlimpiar) you need to clean also the list where you are adding numbers so, set "lista_numeros" to "create empty list".

1 Like

NO ENTENDEFR :thinking:

You are adding numbers to this list:

and later, you are doing the total sum over all the numbers of that list....but that list is never empty. So, when you want to clean the numbers, that I suppose is here:

you need to clean (reset) also that list.

(please, don't use CAPS)

discula las molestias soy nuevo

No pasa nada

Try this:

:hugs: quedo bien muchas gracias disculpa por la confianza solo me faltaria
un config como puedo hacer que el cajon sume varios numeros y sume todo los numeros a la vez adjunto la imagen gracias

mmm, I'm not sure what do you want to achieve...are you referring to first, enter several numbers and then, click on a button, do the sum of all the numbers?

whit this you can enter several numbers (each number in a different line) and then, when click on btAdd button, you will have the sum of all of them.

que es el archivo aia. estoy armando los blokes pero no me funciona
adjunto

y un imagen de ejemplo que trato de hacer gracias



The aia file is your project file. If you export your project, an aia file is generated. You can import an aia file from you computer/device as well. With this aia file the projects can be shared.

Looking at you image, what I understand is that the black rectangle is where you write the new number and when you click on "Agregar" the number is added to the list on the white rectangle an added to the TOTAL amount, right?

What it the difference between "Vaciar" and "Borrar"?
Where and what do you store when click on "Guardar"?

testP.aia (11.3 KB)

Here you have an aia file. You can downlead it and import it (Projects>Import Project). It has what I think you want to achieve for "Agregar" and "Vaciar" buttons.

muchas gracias suficiente con vaciar con el tema de vaciar o guardar es en excel un libro se gurdaba pero este esta bien para sumar mis productos facil y vacias
muchad gracias tratare de mejorar y compartir a esta comunidad

1 Like

muchas gracias suficiente con vaciar con el tema de vaciar o guardar es en excel un libro se gurdaba pero este esta bien para sumar mis productos facil y vacias
muchad gracias tratare de mejorar y compartir a esta comunidad

:grinning:el tema de borrar es cuando uno digite mal un numero se pueda selecionar el numero y borrar pero al borrar se debe restar lo borrado sera eso en esta plataforma :smile:

Try something like this:

ingresado correcto pero no seleciona no borrar :no_mouth:

testP.aia (49.8 KB)
te dejo aia

You cannot have the same event block twice. If you click on the red cross you will see the error:

So remove the first one.

Other error...you have copied bad the blocks...look the red circle.

the file modified:
testP_1.aia (49.6 KB)

gracias que torte se me colo una copia no lo vi

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.