Why I love LiveCode
Devin Asay
devin_asay at byu.edu
Fri Nov 22 13:18:34 EST 2013
I have been using LC/Rev since v. 1.0 beta, and HyperCard for 10 years before that, and I never knew you could do this. It's probably LC 101 to most of you, but for some reason I had never needed to do this.
I was in a substack and needed to know which card was currently showing in the mainstack.
So I tried:
put this card of stack "foo" -- the mainstack --> error, not a container.
So then I tried
put the name of this card of stack "foo" --> works!
It's even more readable like this
put the name of the current card of stack "foo" -- 'current' is a synonym of 'this'
I love "guessable" syntax!
Cheers!
Devin
Devin Asay
Learn to code with LiveCode University
http://university.livecode.com
More information about the use-livecode
mailing list