Trying to duplicate a image from a list of images using a button

i am trying to duplicate the last image selected from a list of images and insert in the list, this is my blocks and my aia. someone can helpme?


duplicar.aia (3.9 KB)

image

global counter_images is not an integer (index number)

Use global counter_index instead ?

global counter images are in value of numbers. so i need to use the other global variable index to work?

You appear to be setting global counter_images to a file path, this is not a list of numbers....

You would also need a single value for the first index here:

image