CardName

Klaus Major klaus at major-k.de
Thu Jan 1 06:04:07 EST 2004


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

> Thank you.

You're welcome...

> Greetings.

Au revoir, mon ami...

> Yves COPPE
> yvescoppe at skynet.be

Regards

Klaus Major
klaus at major-k.de
www.major-k.de



More information about the use-livecode mailing list