# Any Component blocks not functioning

**URL:** <https://community.thunkable.com/t/any-component-blocks-not-functioning/357328>\
**Category:** Questions about Thunkable X\
**Created:** [December 9, 2019, 5:20am UTC](https://community.thunkable.com/t/any-component-blocks-not-functioning/357328 "2019-12-09T05:20:44Z")\
**Posts on this page:** 13\
**Page:** 1

<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:** [December 9, 2019, 5:20am UTC](https://community.thunkable.com/t/any-component-blocks-not-functioning/357328/1 "2019-12-09T05:20:44Z")

</div>

It seems like this was working for me before but now when I add an Any Button block to any of my projects, the screen(s) with that block stop working. Even if the Any Button block doesn’t have any blocks inside, it still prevents all other blocks in the screen from working. Once I remove the Any Button block, everything else works again. I also tried Any Screen, etc. and they are all having this issue.

![Screen Shot 2019-12-08 at 9.10.57 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/5/7526d79d1c59bf9260a5e4fcb9d2797b8f9db3ca.png)

Ultimately, what I’m trying to do is to get the number of the button that is clicked. So if I have five buttons on the screen and I click the 2nd one, it returns “2”. But I don’t see a way to do that and nothing was working so I simplified the example above. But this is as close as I got:

![Screen Shot 2019-12-08 at 9.49.27 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/b/8b7c99fa5da9be10e07bd43c822300e8474bdd82.png)

Here’s a sample project where I’m seeing the simple version of the problem:

[https://x.thunkable.com/copy/4cb625aebc8e40a45e797314f8da26ca](https://x.thunkable.com/copy/4cb625aebc8e40a45e797314f8da26ca)

---

<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:** [December 9, 2019, 8:23am UTC](https://community.thunkable.com/t/any-component-blocks-not-functioning/357328/2 "2019-12-09T08:23:02Z")

</div>

Oh… this is a known issue: ["any button" block dont work](http://community.thunkable.com/t/any-button-block-dont-work/356745/4)

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [December 9, 2019, 8:23am UTC](https://community.thunkable.com/t/any-component-blocks-not-functioning/357328/3 "2019-12-09T08:23:37Z")

</div>

Yes

---

<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:** [December 9, 2019, 8:26am UTC](https://community.thunkable.com/t/any-component-blocks-not-functioning/357328/4 "2019-12-09T08:26:08Z")

</div>

Thanks. Also, do you happen to have an idea how I might return the order # of the button I click? I explained that above but wasn’t sure if there’s any way to do it.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [December 9, 2019, 8:28am UTC](https://community.thunkable.com/t/any-component-blocks-not-functioning/357328/5 "2019-12-09T08:28:39Z")

</div>

scrAirTable click button Clone - Demonstrates an example of blocks for arranging clones.

[https://x.thunkable.com/projects/5d70f93f8a62b4079eedaff2/project/properties/designer/](https://x.thunkable.com/projects/5d70f93f8a62b4079eedaff2/project/properties/designer/)

Best regards, Alex  
[ACtech demo project](https://x.thunkable.com/projects/5d70f93f8a62b4079eedaff2/project/properties/designer/)  
[Thunkable X Basic Programming Course](http://droidscript.ru/main/title_ds15.php)  
[Block Reference](http://droidscript.ru/main/statyi/thunkableios_blockhelper.php)  
[Component Reference](http://droidscript.ru/main/statyi/thunkableios_objects.php)  
[Bug tracker](https://x.thunkable.com/projects/5dbd5243a77acad1b26f851f/project/properties/designer/)  
[Polipaint](https://x.thunkable.com/projects/5db56632a1e1fcefd3932db7/project/properties/designer/)  
[Map canvas](https://x.thunkable.com/projects/5db56eadb7c037443fadb222/project/properties/designer/)  
[Method Inspector](https://x.thunkable.com/projects/5d9310fcdf0a8f208bd2bb11/openProject/designer)  
[Performance](https://x.thunkable.com/projects/5db93ebab8e0fc9c685b3477/project/properties/designer/)

---

<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:** [December 9, 2019, 3:36pm UTC](https://community.thunkable.com/t/any-component-blocks-not-functioning/357328/6 "2019-12-09T15:36:58Z")

</div>

I had figured this out in another part of my project and forgot because it wasn’t working due to the bug. Sorry for the trouble! Here’s the way it works correctly when downloaded to a device:

![Screen Shot 2019-12-09 at 7.26.52 AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/e/3ebdab51d1ccf9d781bd427ac907b4a9555c20ad.png)

To explain, I’m using the variable “thumbnail” to pass the index of the button (in this case an actual thumbnail photo of a person) to the next screen where a larger version of the same photo is displayed. So if the first thumbnail is clicked, it passes “1” and if the fifth thumbnail is clicked, it passes “5”, etc.

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [December 9, 2019, 4:11pm UTC](https://community.thunkable.com/t/any-component-blocks-not-functioning/357328/7 "2019-12-09T16:11:29Z")

</div>

The problem with the index can occur only in one case - you use asynchronous blocks in a synchronous environment. Simply put, you need a certain order of components on the screen, but you do not synchronize the operation of asynchronous blocks for this. May I ask you to explain the problem in more detail? Now I do not understand it.

If you use a recursive function to create clones, as in my example with AirTable, where buttons are created, then there should be no problems with the index.

---

<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:** [December 9, 2019, 5:06pm UTC](https://community.thunkable.com/t/any-component-blocks-not-functioning/357328/8 "2019-12-09T17:06:00Z")

</div>

I’ve created two separate screens for these thumbnail images / student directory: one using clones and one without. They are both working properly with the index variable but updating the information from AirTable is very slow. So I keep trying different methods.

---

<div class="post-metadata">

**Author:** ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)\
**Post date:** [December 9, 2019, 6:06pm UTC](https://community.thunkable.com/t/any-component-blocks-not-functioning/357328/9 "2019-12-09T18:06:21Z")

</div>

> [@tatiang](#):
>
> Oh… this is a known issue: [“any button” block dont work](http://community.thunkable.com/t/any-button-block-dont-work/356745/4)

Are you running the production version of the app from the App Store or the Test Flight version? Also, can you post which version of the Thunkable Live app you are running? One way to do that is to go back to the project list in the app and press and hold the “thunkable” label at the top of the app. Finally, what phone and iOS version are you running?

Thanks!

-Mark

---

<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:** [December 9, 2019, 7:34pm UTC](https://community.thunkable.com/t/any-component-blocks-not-functioning/357328/10 "2019-12-09T19:34:04Z")

</div>

Hi @Mark, I replied to your other response as well but here’s the info:

I’m using the App Store version 56-71 on an iPhone 8 running iOS 13.2.3.

Thanks for looking into this!

---

<div class="post-metadata">

**Author:** ![Michael\_Rogulla](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@Michael\_Rogulla](https://community.thunkable.com/u/Michael_Rogulla)\
**Post date:** [December 9, 2019, 9:23pm UTC](https://community.thunkable.com/t/any-component-blocks-not-functioning/357328/11 "2019-12-09T21:23:20Z")

</div>

Hi @tatiang,

I hope I can help you. Would you please take a look at my solved issue #295 at github: “how to get an index from anybutton”:

> <https://github.com/thunkable/thunkable-issues/issues/295>
>
> I generated buttons with "Any component -\> clone". Let's say I have created 4 buttons. When I click on one of...

---

<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:** [December 9, 2019, 10:58pm UTC](https://community.thunkable.com/t/any-component-blocks-not-functioning/357328/12 "2019-12-09T22:58:33Z")

</div>

Thanks, I actually had solved it… I just didn’t realize it was correct because the bug was preventing it from working. My solution is similiar to what’s in the link you posted: using the component block in an Any Button block to determine which button was clicked.

---

<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, 11:46am UTC](https://community.thunkable.com/t/any-component-blocks-not-functioning/357328/13 "2024-11-08T11:46:27Z")

</div>


