Setting a property on a different card
Scott Rossi
scott at tactilemedia.com
Wed Mar 16 12:01:11 EST 2005
Recently, Len Morgan wrote:
> I have a little app that uses a setup stack (the main-stack) and an "ID
> Card" stack where I have a single card with the layout of an employee
> badge. If I load an image by hand, it works fine. I am now trying to
> to print a batch of these badges on one sheet. I can change the
> contents of the text fields that hold the name, title, etc. with no
> problem but I'm having trouble setting the file name for the image (they
> are stored in a separate folder on a shared drive.
>
> My code is:
>
> set the fileName of empPhoto of card 1 of stack "ID Card" to
> "I:/Photos/00677-180.jpg"
>
> This gives me an error with "no 'to'". This same approach works fine
> with "put" on the text fields (even going to a card on another stack).
Perhaps you're missing the object reference "image" in your script:
set the fileName of image empPhoto of card 1 of stack "ID Card" to
"I:/Photos/00677-180.jpg"
Regards,
Scott Rossi
Creative Director
Tactile Media, Multimedia & Design
-----
E: scott at tactilemedia.com
W: http://www.tactilemedia.com
More information about the use-livecode
mailing list