Android Question UM_Add To Cart question

Hello to all the members of the community, I’m testing this example:
https://www.b4x.com/android/forum/threads/b4x-xui-um_add-to-cart.128308/

which is a control for adding quantities for purchase, but I have a question. For example, how can I reset or set the value back to 0 after selecting a number? This is to simulate that once I add the quantity of products, the values are reset to 0. I see that it has a SetNumber method, but it’s not working for me. Any ideas?

Here is a view of what I have tested; I would like the control to reset for a new process after clicking to add that quantity.



Any suggestions?
 
[CÓDIGO lang="b4x" title="Funciona bien"]
UM_AddToCart1.EstablecerNumber(0)
[/CÓDIGO]
Acabo de probar este método y funciona perfectamente como se esperaba.


Disfrutar...
thanks Peter Simpson

When the value is updated to 0, does the control hide to show the start label? If it stays at 0 and a decrement is pressed, does it show negative numbers?
 
Upvote 0