How do I delete cloned images with the same name all at once?

William de Smet williamdesmet at gmail.com
Wed Jan 17 17:25:52 EST 2018


Hi there,

I have several cloned images and all have the same name: ticket.
Of course there ID is different.
On close card I want to delete them.
How do I delete them all at once?
Wat is wrong with this code?

on mouseup
repeat with x= 1 to the number of images of this card
if the name of image x is "ticket" then put the ID of image x into GONE
end repeat
send ("delete GONE") to me in 0 ticks
end mouseup




greetings,

William



More information about the use-livecode mailing list