# Carriage Return in a TextArea

**URL:** <https://forum.xojo.com/t/carriage-return-in-a-textarea/32489>\
**Category:** General\
**Created:** [July 16, 2016, 6:53pm UTC](https://forum.xojo.com/t/carriage-return-in-a-textarea/32489 "2016-07-16T18:53:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joseph\_Claeys](https://forum.xojo.com/user_avatar/forum.xojo.com/joseph_claeys/32/1104_2.png) [@Joseph\_Claeys](https://forum.xojo.com/u/Joseph_Claeys)\
**Post date:** [July 16, 2016, 6:53pm UTC](https://forum.xojo.com/t/carriage-return-in-a-textarea/32489/1 "2016-07-16T18:53:37Z")

</div>

It’s been awhile since I coded in xojo and I’m stuck on something that seems really basic. How do I do a carriage return in the textarea?

For example, if I run this code:

`for i as integer = 0 to 10
textarea1.appendtext "hello world"
next`

It runs them all together. How would I get it to do each hello world on it’s own line.

---

<div class="post-metadata">

**Author:** ![Roger\_Clary](https://forum.xojo.com/letter_avatar_proxy/v4/letter/r/eada6e/32.png) [@Roger\_Clary](https://forum.xojo.com/u/Roger_Clary)\
**Post date:** [July 16, 2016, 6:56pm UTC](https://forum.xojo.com/t/carriage-return-in-a-textarea/32489/2 "2016-07-16T18:56:34Z")

</div>

`for i as integer = 0 to 10
textarea1.appendtext "hello world"+endOfLine
next`

---

<div class="post-metadata">

**Author:** ![Joseph\_Claeys](https://forum.xojo.com/user_avatar/forum.xojo.com/joseph_claeys/32/1104_2.png) [@Joseph\_Claeys](https://forum.xojo.com/u/Joseph_Claeys)\
**Post date:** [July 16, 2016, 7:08pm UTC](https://forum.xojo.com/t/carriage-return-in-a-textarea/32489/3 "2016-07-16T19:08:43Z")

</div>

There it is!!! Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 6:23pm UTC](https://forum.xojo.com/t/carriage-return-in-a-textarea/32489/4 "2020-10-29T18:23:55Z")

</div>


