# How to determine the end of the line in a multi line text box?

**URL:** <https://forums.unrealengine.com/t/how-to-determine-the-end-of-the-line-in-a-multi-line-text-box/435080>\
**Category:** Blueprint\
**Tags:** text-box, unreal-engine, UE4, CPP, Blueprint, question\
**Created:** [October 5, 2018, 10:18am UTC](https://forums.unrealengine.com/t/how-to-determine-the-end-of-the-line-in-a-multi-line-text-box/435080 "2018-10-05T10:18:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![karti047](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@karti047](https://forums.unrealengine.com/u/karti047)\
**Post date:** [October 5, 2018, 10:18am UTC](https://forums.unrealengine.com/t/how-to-determine-the-end-of-the-line-in-a-multi-line-text-box/435080/1 "2018-10-05T10:18:57Z")

</div>

Hey,  
I created a widget which consists of multi line text box. It works in a pretty neat way which means it accepts input and when the characters in a single line exceeds the amount specified in wrapping of text, it goes to the second line. But is there anyway to know that the cursor has reached the end of a line so that the text box stops reading the input from keyboard? Thank you.

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [October 5, 2018, 2:55pm UTC](https://forums.unrealengine.com/t/how-to-determine-the-end-of-the-line-in-a-multi-line-text-box/435080/2 "2018-10-05T14:55:09Z")

</div>

New line is character of value 10 or 0A in hex:

> **[LINE FEED (LF) (U+000A)](https://www.fileformat.info/info/unicode/char/000A/index.htm)**
>
> Get the complete details on Unicode character U+000A on FileFormat.Info

Note sure if you will able to catch this n blueprint as they may ignore this character, it should way easier in C++ if don’t find way to do it in blueprints. All you need is to do is find “\n” which translated to new line character used in platform (in most cases 0x0A).

---

<div class="post-metadata">

**Author:** ![karti047](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@karti047](https://forums.unrealengine.com/u/karti047)\
**Post date:** [October 6, 2018, 4:33am UTC](https://forums.unrealengine.com/t/how-to-determine-the-end-of-the-line-in-a-multi-line-text-box/435080/3 "2018-10-06T04:33:12Z")

</div>

Thank you. I’ll have to find a way see if it is possible in blueprints then.
