I have created an image object and copied it 31 times. I check that its ID numbers are correlative (from 3383 to 3414).
Ok, so based on those IDs I want to rename the objects but it doesn't seem to work right.
Curious: I get it if I run the code several times because each time it renames one more object.
Where am I going wrong?
Thanks for help.
The code:
Code: Select all
on mouseUp
put 3382 into idbase /* the first object has the id 3383*/
repeat with a = 1 to 32
put idbase + a into identi
put "ima" & a into nombre
set the name of control id identi to nombre
end repeat
end mouseUp