# UMG - Convert text box result to INT

**URL:** <https://forums.unrealengine.com/t/umg-convert-text-box-result-to-int/421029>\
**Category:** UI\
**Tags:** text-box, text, integer, unreal-engine, Blueprint, question, UMG\
**Created:** [March 27, 2018, 2:35pm UTC](https://forums.unrealengine.com/t/umg-convert-text-box-result-to-int/421029 "2018-03-27T14:35:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_51d9717a1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_51d9717a1](https://forums.unrealengine.com/u/anonymous_user_51d9717a1)\
**Post date:** [March 27, 2018, 2:35pm UTC](https://forums.unrealengine.com/t/umg-convert-text-box-result-to-int/421029/1 "2018-03-27T14:35:22Z")

</div>

Currently I am working on an inventory system and my next challenge is using a discard widget to allow the user to throw away multiple items at once. So far I have been following [UnrealGaimeDev](https://www.youtube.com/watch?v=DlXvMA76rzM&index=11&list=PLmKKTERcjTPKEPl0nk48Tpmj-iWmzqo_Q) but the method they use is two buttons that you can click or double click to increment or increase by 10 respectively. I feel like this is painfully inefficient, but I cannot find a solution to my problem. I’m not very well versed in Blueprints to be able to create a solution myself. Would anyone know how to lock the input to text only [(apparently this works, but I couldn’t tell you why)](http://puu.sh/zQALg/fdb2f9aa80.png) but then also convert this text to an INT that I can use in a [“Set Array Elem”](http://puu.sh/zQAXJ/511eddb93d.jpg) node?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_873273371](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_873273371](https://forums.unrealengine.com/u/anonymous_user_873273371)\
**Post date:** [March 27, 2018, 3:03pm UTC](https://forums.unrealengine.com/t/umg-convert-text-box-result-to-int/421029/2 "2018-03-27T15:03:43Z")

</div>

You use the OnTextChange Event and send the Output (converted to a String) to IsNumeric and if it equals to true, you append the value to the input Box.
