Is there an easy way to set structure members?

I just want to set the member of the structure that references the image.

However to do that I have to save all the other data and put it back into the structure.

This is a plate of spaghetti.

How to set only the member that refers to the image without losing the values of the rest of the members of the structure? (And not swimming in a plate of spaghetti)

Thank you so much!!

Try this:

My Products

1 Like

Yess!!, now my code is much cleaner!!

Thank you very much for your help!! :heart: