# Hangman tutorial help (App Inventor to Thunkable) - unsure how to “segment text” in Thunkable

**URL:** <https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/1415631>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [July 26, 2021, 10:48pm UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/1415631 "2021-07-26T22:48:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dr.fadialhusbanfn](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@dr.fadialhusbanfn](https://community.thunkable.com/u/dr.fadialhusbanfn)\
**Post date:** [July 26, 2021, 10:48pm UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/1415631/1 "2021-07-26T22:48:33Z")

</div>

Hello my friends,  
I am trying to make the same app (Hangman) as in the link below.

> [@Hangman tutorial help (App Inventor to Thunkable) - unsure how to "segment text" in Thunkable](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/513656):
>
> Hey there, I am following an advanced procedure and loop tutorial to create a hangman game, but I’m stuck on the following part:

And I am facing the same problem.

Could anyone help me?

I really appreciate any help.  
Thank you in advance

---

<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:** [July 27, 2021, 5:03am UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/1415631/2 "2021-07-27T05:03:16Z")

</div>

When you create a topic, it’s best if you explain what you’re wanting to do, what you’ve tried (screenshots of blocks are usually really important), and what happens when you do that.

The answer to “how to segment text” was given in the topic you linked to. So I could easily say “just do what it says there” but obviously, you’re having trouble with that. So… tell us more…

---

<div class="post-metadata">

**Author:** ![dr.fadialhusbanfn](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@dr.fadialhusbanfn](https://community.thunkable.com/u/dr.fadialhusbanfn)\
**Post date:** [July 27, 2021, 7:16am UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/1415631/3 "2021-07-27T07:16:17Z")

</div>

I really appreciate you response,  
sorry that I forgot to link my blocks.

 ![bl 1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/c/3c9b50eaf05fd6b1447019491d5bd82a60905db9.jpeg)

![bl 2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/7/b7cd4859716635d802663cea3d221ee5f2074171.png)

 ![bl 3](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/9/9916b4ab1e078a011d27e5c57d3e7f0f50be38f3.png)

![bl 4](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/b/4b2653daecbcc0c72726658d5f1af1edf0a52357.png)

 ![bl 5](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/a/aa953520d86ee25b668bf235ec052874d9d551f1.png)

---

<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:** [July 27, 2021, 8:56am UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/1415631/4 "2021-07-27T08:56:46Z")

</div>

We have the opposite problem now… too much information! 🤣

I appreciate that you posted your blocks. What is it, exactly, you are trying to do? Can you explain it in a sentence or two? I’m guessing it has to do with text substrings but I still don’t know what you actually need help with.

---

<div class="post-metadata">

**Author:** ![dr.fadialhusbanfn](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@dr.fadialhusbanfn](https://community.thunkable.com/u/dr.fadialhusbanfn)\
**Post date:** [July 27, 2021, 9:19am UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/1415631/5 "2021-07-27T09:19:32Z")

</div>

😅😅😅😅  
Thank you for your effort,  
I was trying to solve the problem for 1 week, but I am a doctor not a programmer, so your support is highly appreciated .

The tutorial in this YouTube video explains everything.

[![](https://img.youtube.com/vi/GNRJP_Adteo/maxresdefault.jpg "App Inventor Hangman Tutorial: Procedures and For Loops") ](https://www.youtube.com/watch?v=GNRJP_Adteo)

But shortly:  
There is a lable with dashes, which is changes the dashes numbers according to the Word in the list, and this function is working good.  
When you type a letter in the text input, the dashes are changed to letters accordingly (not working), just one dash becomes a letter.

Thank you for your help and patience.

---

<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:** [July 27, 2021, 9:47am UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/1415631/6 "2021-07-27T09:47:36Z")

</div>

I’m sorry, I’m not going to watch a 34-minute video about a different coding platform (related yes, but different) to figure out what you’re needing help with.

This is helpful:

> [@dr.fadialhusbanfn](#):
>
> When you type a letter in the text input, the dashes are changed to letters accordingly (not working), just one dash becomes a letter.

Have you tried to set up the blocks required to do this? If so, please post a screenshot of just those blocks and I can see if I can help you fix them. Also, your screenshots are **very** small. Perhaps you can post larger ones?

I hope you don’t mind me asking but… as a doctor, why are you choosing to program hangman? Are you aware of the recent [Weekend Design Challenge](https://community.thunkable.com/t/wdc-20-can-you-build-your-own-hangman-style-word-game/1387933/)?

---

<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:** [July 27, 2021, 9:57am UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/1415631/7 "2021-07-27T09:57:05Z")

</div>

I do see a problem right away. It appears that you’re looping through the characters of `app variable word` and getting the substring of the letter # “number” to the letter # “number” + 1.

You need to know that the substring block works like this:

`in text "Earth" get substring from letter #1 to letter #2`:

Ea

`in text "Earth" get substring from letter #3 to letter #3`:

r

So I think you need to change your code so that you get the substring from letter # “number” to letter # “number”. That is, if the variable “number” is 2, for example, you want to get the substring from 2 to 2, not from 2 to 3.

---

<div class="post-metadata">

**Author:** ![dr.fadialhusbanfn](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@dr.fadialhusbanfn](https://community.thunkable.com/u/dr.fadialhusbanfn)\
**Post date:** [July 27, 2021, 10:43am UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/1415631/8 "2021-07-27T10:43:19Z")

</div>

Thank you very much, I’ll try it in the evening, and I’ll tell you the result.  
You the best.

---

<div class="post-metadata">

**Author:** ![dr.fadialhusbanfn](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@dr.fadialhusbanfn](https://community.thunkable.com/u/dr.fadialhusbanfn)\
**Post date:** [July 27, 2021, 3:31pm UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/1415631/9 "2021-07-27T15:31:41Z")

</div>

Good evening,  
Although the application is not working properly as I wished, you explained how substring blocks work, and that was very important for me. I think, from here, I have to find the best way to us them.

I really appreciate your support, you spent time to solve my problem, and that was great.

Thank you

---

<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:17pm UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/1415631/10 "2024-11-08T13:17:48Z")

</div>


