# "Clone block" (when screen1 opens)

**URL:** <https://community.thunkable.com/t/clone-block-when-screen1-opens/1329001>\
**Category:** Questions about Thunkable X\
**Created:** [June 6, 2021, 6:08pm UTC](https://community.thunkable.com/t/clone-block-when-screen1-opens/1329001 "2021-06-06T18:08:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mauro.drghk](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mauro.drghk](https://community.thunkable.com/u/mauro.drghk)\
**Post date:** [June 6, 2021, 6:08pm UTC](https://community.thunkable.com/t/clone-block-when-screen1-opens/1329001/1 "2021-06-06T18:08:35Z")

</div>

Hello,  
I used the “Clone block” to clone some photos (from photo library) in screen1 but when screen1 opens all the photo disappear except the last one loaded. How can I save all the clones of the photos so that they reappear when I open screen1? Thank you! (see the photo attached)

 ![Domanda](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/7/b7d7ff35859bf076f8526dd365ded04e0d813217.jpeg)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [June 6, 2021, 10:13pm UTC](https://community.thunkable.com/t/clone-block-when-screen1-opens/1329001/2 "2021-06-06T22:13:02Z")

</div>

You’re using a single variable for your `Picture` property. You need to store each image’s url (the green `Photo` block) in a separate place such as a local DB, Google Sheet, Airtable or Firebase. Each photo will need its own row/entry in the database.

Variables can only store one value at a time. Each time you click the button, it’s going to replace the `stored variable photo` with a new value. It doesn’t keep track of the previous values. When the screen opens, that variable holds the last value it was set to.

---

<div class="post-metadata">

**Author:** ![mauro.drghk](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mauro.drghk](https://community.thunkable.com/u/mauro.drghk)\
**Post date:** [June 7, 2021, 8:12am UTC](https://community.thunkable.com/t/clone-block-when-screen1-opens/1329001/3 "2021-06-07T08:12:53Z")

</div>

Hi, I get it. I tried as suggested (see attached photo) but the problem always remains when screen1 opens (I can’t load all the clones of the photos). I’m definitely wrong in something. Thank you.

 ![Dom2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/a/0a6069c4baf723a9c653c48264e2307ed25e00c8.jpeg)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [June 7, 2021, 11:30am UTC](https://community.thunkable.com/t/clone-block-when-screen1-opens/1329001/4 "2021-06-07T11:30:29Z")

</div>

I can see that you are all the time using row number 1 which means you are using one single row to store all photos so in practice you are replacing the same image all the time.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [June 7, 2021, 3:19pm UTC](https://community.thunkable.com/t/clone-block-when-screen1-opens/1329001/5 "2021-06-07T15:19:48Z")

</div>

Right. You need to loop through your data source rows and use the loop counter as the rowNum.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:20pm UTC](https://community.thunkable.com/t/clone-block-when-screen1-opens/1329001/6 "2024-11-08T13:20:25Z")

</div>


