# Help me with the blocks appropriate

**URL:** <https://community.thunkable.com/t/help-me-with-the-blocks-appropriate/125440>\
**Category:** Questions about Thunkable X\
**Created:** [June 29, 2019, 11:26am UTC](https://community.thunkable.com/t/help-me-with-the-blocks-appropriate/125440 "2019-06-29T11:26:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Belmes](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert\_Belmes](https://community.thunkable.com/u/Robert_Belmes)\
**Post date:** [June 29, 2019, 11:26am UTC](https://community.thunkable.com/t/help-me-with-the-blocks-appropriate/125440/1 "2019-06-29T11:26:00Z")

</div>

I already search about this and still i have difficulty creating my app for making a list of task with average daily amount of time spending doing them…for example, i want to input the minutes or hour i spend sleeping then computing my average daily.i have the math block of “+” and i think it is the reason why my app goes error when opened…

 ![Screenshot_2019-06-29-19-16-40](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/d/8dd089d3935b55d78b3a6705fe6090f37b2b1b2c.png)  
 ![Screenshot_2019-06-29-19-24-45](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/1/9184d6a847330f8cabf3e870944c24bef160190b.png)

---

<div class="post-metadata">

**Author:** ![Robert\_Belmes](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert\_Belmes](https://community.thunkable.com/u/Robert_Belmes)\
**Post date:** [June 29, 2019, 11:29am UTC](https://community.thunkable.com/t/help-me-with-the-blocks-appropriate/125440/2 "2019-06-29T11:29:39Z")

</div>

Please help me…im a beginner but i already knew some concept since i already made 1 app created by me of which i am proud…i want to create this because as a student i want to track my average amount of time spending certain task.

---

<div class="post-metadata">

**Author:** ![kartik\_old](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik_old/32/28305_2.png) [@kartik\_old](https://community.thunkable.com/u/kartik_old)\
**Post date:** [June 29, 2019, 11:56am UTC](https://community.thunkable.com/t/help-me-with-the-blocks-appropriate/125440/3 "2019-06-29T11:56:57Z")

</div>

Hello!  
Try switching **textbox1. numbers only with text**

---

<div class="post-metadata">

**Author:** ![Robert\_Belmes](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert\_Belmes](https://community.thunkable.com/u/Robert_Belmes)\
**Post date:** [June 29, 2019, 12:25pm UTC](https://community.thunkable.com/t/help-me-with-the-blocks-appropriate/125440/4 "2019-06-29T12:25:22Z")

</div>

Hello tnx for replying @kartik_old…i tried your suggestion but still the same error occurs…can you help me with this…i have a question "is it possible that we can add the value of variables to a value from a text we input from the textbox??"this what makes me curious…i think this may be the starting solution to this problem

---

<div class="post-metadata">

**Author:** ![kartik\_old](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik_old/32/28305_2.png) [@kartik\_old](https://community.thunkable.com/u/kartik_old)\
**Post date:** [June 29, 2019, 3:58pm UTC](https://community.thunkable.com/t/help-me-with-the-blocks-appropriate/125440/5 "2019-06-29T15:58:37Z")

</div>

Hello,  
Can you explain more clearly? I can’t get you…

---

<div class="post-metadata">

**Author:** ![CBVG](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cbvg/32/32401_2.png) [@CBVG](https://community.thunkable.com/u/CBVG)\
**Post date:** [June 29, 2019, 4:42pm UTC](https://community.thunkable.com/t/help-me-with-the-blocks-appropriate/125440/6 "2019-06-29T16:42:40Z")

</div>

First thing to note is that you posted your question on the Thunkable X discussion, while your blocks are clearly styled after the Classic Thunkable.  
Classic and X are different environment, with different features and functions.

Second thing I notice is that you assign “Label3.Text” to be “TextBox1.NumbersOnly”.  
TextBox1.NumbersOnly is the current configuration of TextBox1. Its value is either TRUE or FALSE, and it defines if TextBox1 is restricted to accept only digits or if letters and other non numeric characters are allowed. If you want to transfer the _content_ of TextBox1, you have to call it TextBox1.Text.

Then, you set your initial value of ‘global sleep’ to " ". Either a zero size string or a single blank – hard to tell directly from the block, they would look pretty much the same until you click in it and see if it include one blank space or not. But the fact that the error message mentions “\* empty-string \*” is a good indication that it is zero size string.  
But you then proceed to add this empty string to TRUE. What are you expecting to get besides an error?

Fix 1: replace the initialisation of global sleep so that it is set to 0. Use the math block to find the number token, it is blue as is the + addition function

Fix 2: set Label3.Text to TextBox1.Text, not to TextBox1.NumbersOnly

Fix 3: in Screen1.Initialize, set the “value If Tag Not There” to 0, not to empty string.

All 3 fixes are required.

---

<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:12pm UTC](https://community.thunkable.com/t/help-me-with-the-blocks-appropriate/125440/9 "2024-11-08T12:12:28Z")

</div>


