Page 1 of 1

Name of the previous button

Posted: Thu Oct 01, 2015 7:43 am
by shalu
Hi All,

I have five buttons in my card if I click any one the of button then it's must be display the name of the last clicked button name. during the initial click it's must display it's own name. is it possible ? :roll: :?

Thanks
shalu

Re: Name of the previous button

Posted: Thu Oct 01, 2015 1:09 pm
by Klaus
Hi shalu,

similar to what I wrote yesterday, you need to memorize the last clicked buttons name somehow (local or global variable or a custom property)! 8)


Best

Klaus

Re: Name of the previous button

Posted: Thu Oct 01, 2015 5:23 pm
by zaxos

Code: Select all

global tLastButton
on mouseUp
answer tLastButton&&the short name of me
put the short name of me into tLastButton
end mouseUp