Name of the previous button

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
shalu
Posts: 72
Joined: Fri Mar 20, 2015 1:05 pm

Name of the previous button

Post by shalu » Thu Oct 01, 2015 7:43 am

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
--
Thanks
Shalu S

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Name of the previous button

Post by Klaus » Thu Oct 01, 2015 1:09 pm

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

zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: Name of the previous button

Post by zaxos » Thu Oct 01, 2015 5:23 pm

Code: Select all

global tLastButton
on mouseUp
answer tLastButton&&the short name of me
put the short name of me into tLastButton
end mouseUp
Knowledge is meant to be shared.

Post Reply