Code: Select all
put the ID of image timagename of card "Imageholder" of this stack into TheImageID
What am I trying to do:
Step 1: Copy a button from card "buttonstemplate" to card "Menu" and rename it to "Button1" >>>> this works fine.
Step 2: Copy an existing image on the current card to card "Imageholder" and rename it to e.g. "Button1_Imagename" >>>> this works fine.
Step 3: Now I want to set the icon of "Button1" on card "Menu" to the id number of the image "Button1_Imagename" on card "Imageholder" so it shows the image on the button. This gives the mentioned problem.
To simplify things I have tried to put the ID of the image in a variable 'TheImageID' but still the same error, (Chunk: no such object), char 8.
I checked the image name in variable 'timagename' and the card name over and over again. Images are available at card "Imageholder"
Am I doing something that is not possible or allowed ?
The original statement was:
Code: Select all
set the icon of button ButtonName of card"Menu" to the id of image timagename of card "Imageholder"

Regards,
Paul