OK - let's be more descriptive - this card and the current card won't work. Let's picture an application - say it's a keynote style presentation stack - and we are creating background groups that a user can place in the presentation. Say the presentation has 10 cards and all of them happen to use the shared background group "Title and Text".
Now as an author of these background groups I want to give them nice easy custom properties - so that anyone can script them easily - one of these properties is "title_Text" - as most groups have a title. I want end users to be able to do things like: put the title_Text of group 1 of card 2 into secondTitle > or if I want a user want to create and index with a script: repeat with cardNum = 1 to the number of cards > put the title_Text of group 1 of card cardNum & CR after myIndex > end repeat > So how can I write a handler to retrun the text of a background group on a card other than the current card? The only way I know of is to do some ugly manual parsing of the long id of the target, and so extract the card id and construct a reference that way - very ugly and in other contexts error prone. What we need is something equivalent to: put the card of the target put the number of the card of the target Any other way of doing this simple task? On 29 March 2013 19:17, J. Landman Gay <jac...@hyperactivesw.com> wrote: > On 3/29/13 1:44 PM, Mark Wieder wrote: > >> David Bovill <david@...> writes: >> >> >>> That is the issue - there is no "easy" way of finding out the value of >>> <integer> from within the behavior. There is a way - but it is both >>> unreliable and very ugly. Wandering if anyone has a simple reliable >>> technique I've missed? >>> >> >> the currentcard of this stack >> >> > Or even just "this card". That assumes the card whose data he wants really > *is* the current card though. I'm not clear about that. > > > -- > Jacqueline Landman Gay | jac...@hyperactivesw.com > HyperActive Software | http://www.hyperactivesw.com > > ______________________________**_________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode> > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode