CardName

Richard Gaskin ambassador at fourthworld.com
Thu Jan 1 10:42:47 EST 2004


Klaus Major wrote:

> Bonne Annee Yves and all :-)
> 
>> Hi everybody
>> 
>> HAPPY NEW YEAR 2004
>> 
>> A question about cardname
>> 
>> 
>> on Mac OS X
>> I have a
>> - stack A (10 cds)
>> - stack B = drawer of stack A
>> 
>> 
>> when I click a button in the open drawer (Stack B), I'd like to know
>> which is the cardName of the current card in stack A ???
>> 
>> Can you help me ?
>> 
>> I've gone around with that problem searching with line 1 of the
>> recentNames of stack A
>> but in this case, the lockRecnet my not exist when opening a new card
>> in stack A.
>> 
>> Is there a more direct way ???
> 
> Try this in the script of the button in stack B:
> 
> on mouseup
> set the defaultstack to "A"
> put the short name of this cd into jean_jaques ## or yvette or... ;-)
> ## do what you want with jean_jaques :-)
> ...
> end mouseup

As an alternative to setting the defaultStack you can also say:

   go this cd of stack "A"

...or:

   get fld 1 of this cd of stack "A"

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 Developer of WebMerge: Publish any database on any Web site
 ___________________________________________________________
 Ambassador at FourthWorld.com       http://www.FourthWorld.com



More information about the use-livecode mailing list