
I am beginner in LiveCode, I have a question about how to count number clicks are generated while clicking a button, and store this into a variable. Can you please give me a solution?
Thanks
Kevin
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
global gMyNumberClic
on mouseup
add 1 to gMyNumberClic
end mouseup
Code: Select all
on mouseup
do myStuuf
pass mouseup
end mouseup
Code: Select all
global gMyNumberClic
on mouseup
add 1 to gMyNumberClic
pass mouseup
end mouseup
Code: Select all
global labelCounter
on mouseUp
set the label of me to the label of me + 1
set the currentCount of me to the label of me
put the label of me into labelCounter
end mouseUp