Increase and Decrement Value of Variable with Button.LongClick

33 views
Skip to first unread message

Rajarshi Roy

unread,
Apr 12, 2016, 9:52:29 AM4/12/16
to mitappinv...@googlegroups.com
Hello, 
I am trying to increment/decrement the value of a variable using LongClick. There are two separate buttons for increment/decrement. The purpose is to increment/decrement as long as the relevant button is pressed. After the increment/decrement is done, the value is sent via Bluetooth. But I am unable to increment/decrement with the long button press. Can anyone help me with the logic on how to do it? I've tried some stuffs, but unable to find the correct logical blocks. The relevant picture of what I've come up with, is attached.

Thank You in Advance :)
ButtonLongClick.png

Italo

unread,
Apr 12, 2016, 10:57:00 AM4/12/16
to MIT App Inventor Forum

Rajarshi Roy

unread,
Apr 16, 2016, 12:39:16 PM4/16/16
to MIT App Inventor Forum
Thanks a lot Italo :) It helped a lot :) I'm finally able to increment and decrement a value using LongClick. Yeah! :D :) 
Reply all
Reply to author
Forward
0 new messages