# 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/513656>\
**Category:** Questions about Thunkable X\
**Created:** [March 13, 2020, 7:32pm UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/513656 "2020-03-13T19:32:54Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![shan.brazil7zcc](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/shan.brazil7zcc/32/63856_2.png) [@shan.brazil7zcc](https://community.thunkable.com/u/shan.brazil7zcc)\
**Post date:** [March 13, 2020, 7:32pm UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/513656/1 "2020-03-13T19:32:54Z")

</div>

Hey there, I am following an advanced procedure and loop tutorial to create a hangman game, but I’m stuck on the following part:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/2/72767af8378f85559a47bfca63986ddc25197334.png)

---

<div class="post-metadata">

**Author:** ![shan.brazil7zcc](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/shan.brazil7zcc/32/63856_2.png) [@shan.brazil7zcc](https://community.thunkable.com/u/shan.brazil7zcc)\
**Post date:** [March 13, 2020, 7:58pm UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/513656/2 "2020-03-13T19:58:35Z")

</div>

This is what I have so far, but I am not sure how to do the “Segment text” part:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/9/7915ed3757ce91c4b16bef9d1530b929a9ac1162.png)

---

<div class="post-metadata">

**Author:** ![paulmw](https://avatars.discourse-cdn.com/v4/letter/p/22d042/32.png) [@paulmw](https://community.thunkable.com/u/paulmw)\
**Post date:** [March 13, 2020, 9:52pm UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/513656/3 "2020-03-13T21:52:37Z")

</div>

This block does the same thing as the segment block in App Inventor:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/f/af2de320212b7c3f4f98a9fcdaf75488d1e2705d.png)

---

<div class="post-metadata">

**Author:** ![shan.brazil7zcc](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/shan.brazil7zcc/32/63856_2.png) [@shan.brazil7zcc](https://community.thunkable.com/u/shan.brazil7zcc)\
**Post date:** [March 15, 2020, 12:34am UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/513656/4 "2020-03-15T00:34:34Z")

</div>

Alright,

This is how I wrote it, but it’s not working the way I need it to. It is not revealing any letters that I get right.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/6/764f7214bb47db8da84e993e86fdbdd9d8561f7f.png)

I also have an issue where the alert I receive is the message I was suppose to receive from a previous event. Ie: I give a correct letter, the message is blank (initial value), then i give an incorrect letter, and the message states the letter was correct.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 15, 2020, 1:33am UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/513656/5 "2020-03-15T01:33:49Z")

</div>

In this example, in your conditional statement within the count block. You pose an invalid logic statement.

“If text = “

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/1/6103ca10c7ea1da8eea1d414f697b973bd229720.jpeg)

What would you want text to equal or not equal?

That spot shouldn’t be empty, it is probably what is causing this error

---

<div class="post-metadata">

**Author:** ![shan.brazil7zcc](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/shan.brazil7zcc/32/63856_2.png) [@shan.brazil7zcc](https://community.thunkable.com/u/shan.brazil7zcc)\
**Post date:** [March 15, 2020, 2:12am UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/513656/7 "2020-03-15T02:12:15Z")

</div>

I have tried to complete this conditional statement, but I am unable to replicate what I have in App Inventor.

 ![Screenshot_20200314-215310_Chrome](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/e/de543d3763e1d9e237722e7d18c0f781a6e8ef03.jpeg)

I am unable to place “length of 1” within the substring argument.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 15, 2020, 2:22am UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/513656/8 "2020-03-15T02:22:24Z")

</div>

I think you could try this

 ![Screen Shot 2020-03-14 at 10.48.50 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/f/5f361c0e36d7e0ac673c301cead5ef6643bdb1b6.png)

---

<div class="post-metadata">

**Author:** ![gpo](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@gpo](https://community.thunkable.com/u/gpo)\
**Post date:** [August 12, 2020, 1:34am UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/513656/9 "2020-08-12T01:34:04Z")

</div>

Jared: How would you eliminate the last x characters of a string? I want to count backwards from the end and drop x characters from the end.

Anything you know would be appreciated.

Thank you

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [August 14, 2020, 12:15pm UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/513656/10 "2020-08-14T12:15:22Z")

</div>

@gpo this might get more attention as a stand alone post?

---

<div class="post-metadata">

**Author:** ![gpo](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@gpo](https://community.thunkable.com/u/gpo)\
**Post date:** [August 14, 2020, 12:19pm UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/513656/11 "2020-08-14T12:19:11Z")

</div>

Thank you. You solved for me yesterday.

---

<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:38pm UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/513656/12 "2021-07-26T22:38:36Z")

</div>

Hello dear, I am trying to make the same app, but it does not working with me for the same reason.  
Could you guide me! How you solved the problem?

---

<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:02am UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/513656/13 "2021-07-27T05:02:32Z")

</div>

This is a duplicate comment so I’m closing this thread.

---

<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:40am UTC](https://community.thunkable.com/t/hangman-tutorial-help-app-inventor-to-thunkable-unsure-how-to-segment-text-in-thunkable/513656/14 "2024-11-08T11:40:25Z")

</div>


