# Problem with function and parameters

**URL:** https://community.thunkable.com/t/problem-with-function-and-parameters/16171
**Category:** Questions about Thunkable X
**Created:** [February 4, 2018, 4:34pm UTC](https://community.thunkable.com/t/problem-with-function-and-parameters/16171 "2018-02-04T16:34:38Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![rollke](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rollke/32/14413_2.png) [@rollke](https://community.thunkable.com/u/rollke)
#### Post date: [February 4, 2018, 4:34pm UTC](https://community.thunkable.com/t/problem-with-function-and-parameters/16171/1 "2018-02-04T16:34:38Z")

</div>

This very simple example (out of a greater problem) does not work:

![27](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/2X/2/216767366290c6c96e5bb6178646ba2b29ab7a8e.png)

---

<div class="post-metadata">

### Author: ![rollke](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rollke/32/14413_2.png) [@rollke](https://community.thunkable.com/u/rollke)
#### Post date: [February 14, 2018, 10:57am UTC](https://community.thunkable.com/t/problem-with-function-and-parameters/16171/2 "2018-02-14T10:57:34Z")

</div>

I still have no solution and no idea why it does not work.  
Could someone test something like this?

The problem:  
There is a function to output the value of the parameter (x for a text-type parameter and y for a number-type parameter) The value of the parameter simply should be displayed in a label.  
The result: When clicking on one of the buttons there is a blank screen and the app hangs!

The same bug, when using a InputText field instead of a label.

I urgently need a solution for bigger app…

Thank You all!

---

<div class="post-metadata">

### Author: ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)
#### Post date: [February 14, 2018, 5:44pm UTC](https://community.thunkable.com/t/problem-with-function-and-parameters/16171/3 "2018-02-14T17:44:25Z")

</div>

> [@rollke](#):
>
> e problem:
> 
> There is a function to output the value of the param

I have tried to use functions with input parameter in thunkable iOS , too.

I had no success, an therefore I do not use the input parameter option at all. In the end I decided to declare a global variable and right before calling the function, I set this global variable to the value I want.  
I hope I explained it clearly enough 🤔🙃

I suggest this workaround for you until this is fixed.

cheers,  
User81

---

<div class="post-metadata">

### Author: ![rollke](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rollke/32/14413_2.png) [@rollke](https://community.thunkable.com/u/rollke)
#### Post date: [February 14, 2018, 6:24pm UTC](https://community.thunkable.com/t/problem-with-function-and-parameters/16171/4 "2018-02-14T18:24:13Z")

</div>

Thank you.  
But this is only a workaround.  
I think it is important for the thunkable team, to know that there is a bug.  
Functions with usable parameters are for many problems very important.

Please: Repair that bug.

Thanks

---

<div class="post-metadata">

### Author: ![User81](https://avatars.discourse-cdn.com/v4/letter/u/ba9def/32.png) [@User81](https://community.thunkable.com/u/User81)
#### Post date: [April 6, 2018, 4:59am UTC](https://community.thunkable.com/t/problem-with-function-and-parameters/16171/5 "2018-04-06T04:59:33Z")

</div>

Hi rollke,  
I think this Burg was fixed in the Recent Update. Can you confirm that and close this Thread?

---

<div class="post-metadata">

### Author: ![rollke](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rollke/32/14413_2.png) [@rollke](https://community.thunkable.com/u/rollke)
#### Post date: [April 7, 2018, 3:44pm UTC](https://community.thunkable.com/t/problem-with-function-and-parameters/16171/6 "2018-04-07T15:44:39Z")

</div>

Function with parameters work now.  
Brilliant.  
Thank You Tunkable team.

---

<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, 12:04pm UTC](https://community.thunkable.com/t/problem-with-function-and-parameters/16171/7 "2024-11-08T12:04:04Z")

</div>


